Copy link to clipboard
Copied
Hello-
I am trying to integrate our SugarCRM application & our Coldfusion application using web services.
My page that calls the web service looks like this
------------------------------------
<cfscript>
user_struct = structnew();
user_struct["user_name"] = "my_username";
user_struct["password"] = "my_password";
auth_struct = structnew();
auth_struct["user_auth"] = user_struct;
auth_struct["application_name"] = "my_app";
ws = createObject("webservice", "https://{mysite}/soap.php?wsdl");
login_results = ws.login(auth_struct);
</cfscript>
<cfdump var="#login_results#">
-----------------------------
the relevant lines in the wsdl file are
Error Occurred While Processing Request | |
|
the wsdl has a 'test' operation that passes a simple string that is echoed back & it worked just fine so I know I am connecting to it.
Any ideas?
Thank you!
Sena
Copy link to clipboard
Copied
The first thing I notice is that your struct has a user_name and a password:
user_struct["user_name"] = "my_username";
user_struct["password"] = "my_password";
And that the WSDL defines a user_name, password and version:
* * <xsd:element name="*user_name*" type="*xsd:string*" />
* * <xsd:element name="*password*" type="*xsd:string*" />
* * <xsd:element name="*version*" type="*xsd:string*" />
Usually these things need to match.