Stupid SOAP?

or stupid me?

Ok so, operation/method is “viewCSGNotesByWorkOrderNumber”
I also have to send a bunch of login/password stuff with it to get it to work. So I wrote this…

[php]
$para = array(
‘userId’ => ‘xxxx’,
‘password’ => ‘xxxx’,
‘proxyUserId’ => ‘xxxx’,
‘proxyPassword’ => ‘xxxx’,
‘workOrderNumber’ => ‘xxxx’);

$client = new soapclient(“https://url-to-wsdl”);

$client->call(‘viewCSGNotesByWorkOrderNumber’, array($para));
[/php]

I’ve also tried $client = new soapclient('https://url-to-wsdl",$para) and still get

[php]
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://url-to-wsdl’ : failed to load external entity “https://url-to-wsdl” in C:\easyPHP\www\cms_soap3.php:9 Stack trace: #0 C:\easyPHP\www\cms_soap3.php(9): SoapClient->SoapClient(‘https://wfms-te…’) #1 {main} thrown in C:\easyPHP\www\cms_soap3.php on line 9
[/php]

I have tried and tried all kinds of different things and get that same error? Anyone maybe have a little bit of knowledge on these things so maybe I can make some progress on this?

You need to change the URL put in between the speech marks:

[php]$client = new soapclient('https://url-to-wsdl",$para);[/php]

For example, if the SOAP URL you’d been given was https://somesite.com/api/ then you’d put:

[php]$client = new soapclient('https://somesite.com/api/",$para);[/php]

Yeah, it is. I am just not supposed to give out the URL(s) to the API(s). So I changed it so you don’t see it. There are a total of like 10 API urls and all of them return the same error. So I assumed it was my code. I’ve even tried using other stuff like NuSoap to make contact and it errors out also.

Anyone? I spent the weekend trying to hunt this error down and nothing. I do not manage the SOAP server, which is written in ColdFusion.

Just trying to figure out if my code is correct…

Sponsor our Newsletter | Privacy Policy | Terms of Service