Community v4.5.1d
I've tried connecting to the SOAP API using both nuSoap and php5's soap client, the latter in both wsdl and non-wsdl mode. Nothing seems to work.
With nuSoap, my calls don't seem to return anything, so I tried with php5. That produced the error message
" 'location' and 'uri' options are requred in nonWSDL mode ", so I tried connecting in non-wsdl mode (specifying location and uri, style and use). That seemed to get me connected, but my calls produced the error message
"looks like we got no XML document". __getLastResponse() shows that what was returned was the html presentation of the api (with popouts describing each soap call, i.e. this: https://demo.sugarondemand.com/sugarcrm/soap.php).
So I have two questions for this forum:
1) Why are my clients unable to recognize soap.php?wsdl as wsdl?
2) Why does the php5 client not recognize what it receives as xml OR why does sugar soap send its response as html instead of xml?
Furthermore:
I've tried using "http://mkcrm45/soap.php?wsdl" as the location, as opposed to "http://mkcrm45/soap.php" (which is what I used above). In that case, the error message I get is "Wrong Version", and what is returned is a series of empty tablecells. What gives? I've tried to submit the expected soap version (in both the client construct and the login call) as both SOAP_1_1 and SOAP_1_2. Does SugarCRM use a different version than these, or does the problem lurk elsewhere?
Finally:
The whole uri-thing is a bit gibberishy to me. I've seen some people use something like "urn:xmethods-delayed-quotes" for other services. What is correct for SugarCRM, and why?
-Kyrre


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks