Forums & Blog

A SmarterTools-sponsored community.
Welcome to Forums & Blog Sign in | Join | Help
in Search

What to pass as an argument into addsite function??

Last post 02-28-2009 2:46 AM by machsol. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-27-2009 9:30 AM

    What to pass as an argument into addsite function??

    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

  • 02-28-2009 2:46 AM In reply to

    Re: What to pass as an argument into addsite function??

    Any body who could help?

Page 1 of 1 (2 items)