SoapClient Returns "NULL", but __getLastResponse() returns XML
- To: <soap@lists.php.net>
- Subject: SoapClient Returns "NULL", but __getLastResponse() returns XML
- From: "Shanon Swafford DFWAVC.COM" <shanon@dfwavc.com>
- Date: Thu, 6 Oct 2011 01:10:27 -0500
- Thread-index: AcyD7qSXifczROEGQOazkTnM78xs7w==
Hi,
I'm having troubles consuming a PERL Web Service with the WSDL generated by
Pod::WSDL.
This is the WSDL (trimmed as it is 800k):
http://pastebin.com/HP1ELVTQ
Can anybody see my error? I've tried *many* different ways of instantiating
the client, but still "NULL" in the response object.
When I run this code:
$wsdl = "http://myserver/local/enswitch.wsdl";
ini_set("soap.wsdl_cache_enabled", "0"); // disable WSDL cache
$client = new SoapClient($wsdl, array('trace'=>true, 'exceptions'=>true));
$response = $client->get_queue_destinations($username, $password, $id);
print_r($response); // Returns "NULL"
But:
print "Response: \n".$client->__getLastResponse()."\n";
spits out:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<get_queue_destinationsResponse
xmlns="http://es1.langineers.com/Integrics/Enswitch/API">
<s-gensym37>
<priority xsi:type="xsd:string">1</priority>
<active xsi:type="xsd:string">0</active>
<dtype xsi:type="xsd:string">phone</dtype>
<dnumber xsi:type="xsd:string">1234206</dnumber>
<id xsi:type="xsd:string">2228</id>
<queue xsi:type="xsd:string">30</queue>
<available xsi:type="xsd:string">0</available>
<lasttime xsi:type="xsd:string">0</lasttime>
<nexttime xsi:type="xsd:string">0</nexttime>
</s-gensym37>
<s-gensym39>
<priority xsi:type="xsd:string">1</priority>
<active xsi:type="xsd:string">0</active>
<dtype xsi:type="xsd:string">phone</dtype>
<dnumber xsi:type="xsd:string">1234672</dnumber>
<id xsi:type="xsd:string">2227</id>
<queue xsi:type="xsd:string">30</queue>
<available xsi:type="xsd:string">1</available>
<lasttime xsi:type="xsd:string">1314867027</lasttime>
<nexttime xsi:type="xsd:string">0</nexttime>
</s-gensym39>
</get_queue_destinationsResponse>
</soap:Body>
</soap:Envelope>
Thanks in advance,
Shanon Swafford
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[PHP Users]
[Kernel Newbies]
[PHP Database]
[Yosemite]