in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Unable to use SOAP

Last post 03-27-2008 12:16 PM by kvirostek. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-09-2008 4:08 PM

    Unable to use SOAP

    Can someone help?

     

    I've written the following:

    *********************************************************************************

     Sub CreateUser()

    Dim objES As EnterpriseServer.EnterpriseServerProxyConfigurator

    objES = New EnterpriseServer.EnterpriseServerProxyConfigurator

    objES.EnterpriseServerUrl = m_URL

    objES.Username = m_Username

    objES.Password = m_Password

    Dim userService As EnterpriseServer.esUsers

    userService = New EnterpriseServer.esUsers

    Try

    objES.Configure(userService)

    Dim dnpUser As EnterpriseServer.UserInfo

    dnpUser = New EnterpriseServer.UserInfo

    'User Info

    dnpUser.UserId = 0

    dnpUser.Role = DotNetPanel.EnterpriseServer.UserRole.User

    dnpUser.StatusId = 1

    dnpUser.OwnerId = 1

    dnpUser.IsDemo = False

    dnpUser.IsPeer = False

    dnpUser.EcommerceEnabled = False

    'account info

    dnpUser.FirstName = "First Name"

    dnpUser.LastName = "Last Name"

    dnpUser.Email = "first@last.tld"

    dnpUser.SecondaryEmail = "second@last.tld"

    dnpUser.HtmlMail = True

    dnpUser.Username = "TestUser1"

    dnpUser.Password = "Password"

    'contact info

    dnpUser.CompanyName = "Company Name"

    dnpUser.Address = "Address"

    dnpUser.City = "City"

    dnpUser.Country = "Country"

    dnpUser.State = "State"

    dnpUser.Zip = "12345"

    dnpUser.PrimaryPhone = "5551231234"

    dnpUser.SecondaryPhone = "5551231235"

    dnpUser.Fax = "5551231236"

    dnpUser.InstantMessenger = "IMID"

    Dim intResult As Integer

    intResult = userService.AddUser(dnpUser, False)

    dnpUser = Nothing

    Catch ex As Exception

    lblError.Text = ex.Message

    End Try

    userService = Nothing

    objES = Nothing

    **********************************************************************************************

    However, when I attempt to run this, I wind up with the following error:

    Server did not recognize the value of HTTP Header SOAPAction: http://officepark/dotnetpanel/enterpriseserver/AddUser.

    This happens regardless of which method I call. What did I forget?

    Kimberly Virostek
    Systems Engineer
  • 03-09-2008 7:10 PM In reply to

    Re: Unable to use SOAP

    Yeah... Never mind the goober in the corner. Apparently, it works better if you use the same verison of the dll's in your interface as exist on the server. Stick out tongue

    Kimberly Virostek
    Systems Engineer
    Filed under:
  • 03-26-2008 10:41 PM In reply to

    • pinklloyd
    • Top 25 Contributor
    • Joined on 02-11-2006
    • Charlotte, NC USA
    • Posts 324

    Re: Unable to use SOAP

     you know if you could package this up to collect new user info from a DNN portal and associate the user to DNP resellers or affiliates and you'd have yourself an awesome little piece of code. Actually I haven't tried the code just thought about the idea as I admired your work. Did you get this to work?

    Building Virtual worlds
    OpenSIM host and Architect,
    Reseller based VR Virtual Reality! ;)
    Virtual storefronts - Merchant account reseller - Microsoft/Dell VAR. ISV,
  • 03-27-2008 12:16 PM In reply to

    Re: Unable to use SOAP

    Yes, I've been able to import all my users and programattically create their websites and ftp accounts. It was awesome!!

    Kimberly Virostek
    Systems Engineer
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems