4 Replies Latest reply on Jan 8, 2008 11:23 AM by JR "Bob" Dobbs-qSBHQ2

    Using CreateObject for Webservice with username and password

      When using createObject() to call a web service how do I pass in the user name and password required by the service?

      If I do a cfdump on the webservice object I see it has setUserName() and setPassword() methods but they don't seem to be working.

      I also see there are properties named "USERNAME_PROPERTY" and "PASSWORD_PROPERTY" but I can't seem to modify them in code. I suppose they are protected.

      ws = createObject("webservice", " http://url.to/wsdl.xml", "serviceport");
      myReturn = ws.serviceMethodCall("bla");