I m using this piece of code:
I have confussionz in them Tell me what is meant by:
SoUserName (Is it site login Username and password??)
SoPassword
ServerID (From where I can get it??)
SiteID (Is it same as website ID in IIS??)
LogFormat (Giving me error that incorrect log format)
ExportPath/ ExportPathURL (means?)
Obj.DomainAdd("http://127.0.0.1:9999/services/", "admin", "admin", "mywebsite", "Faheem", "sa", "Faheem", "Faheem", 1, 1179986622)
Public Function DomainAdd(ByVal ServiceURL As String, ByVal AuthUserName As String, _
ByVal AuthPassword As String, _
ByVal DomainName As String, _
ByVal SoUserName As String, _
ByVal SoPassword As String, _
ByVal SoFirstName As String, _
ByVal SoLastName As String, _
ByVal ServerID As Integer, _
ByVal SiteID As Integer, _
Optional ByVal LogDirectoryPath As String = "C:\WINDOWS\system32\LogFiles", _
Optional ByVal LogFormat As String = "IIS-W3Cex Log Format", _
Optional ByVal LogWildCard As String = "*.Log", _
Optional ByVal LogDaysBeforeDelete As Integer = 10, _
Optional ByVal SmarterLogDirectory As String = "C:\SmarterLogs", _
Optional ByVal SmarterLogMonthsBeforeDelete As Integer = 5, _
Optional ByVal ExportPath As String = "", _
Optional ByVal ExportPathURL As String = "", _
Optional ByVal TimeZoneID As Integer = 27) As SmarterStats4x.SiteAdmin.GenericResult
Dim RetVal As SmarterStats4x.SiteAdmin.GenericResult
Dim Domain As New SmarterStats4x.SiteAdmin.SiteAdmin
Domain.Url = ServiceURL & "siteadmin.asmx"
With Domain
RetVal = .AddSite(AuthUserName, AuthPassword, SoUserName, SoPassword, SoFirstName, SoLastName, ServerID, SiteID, DomainName, LogDirectoryPath, LogFormat, LogWildCard, LogDaysBeforeDelete, SmarterLogDirectory, SmarterLogMonthsBeforeDelete, ExportPath, ExportPathURL, TimeZoneID)
End With
Domain.Dispose()
Return RetVal
End Function