Re: Soap Call Error
| From: | Jason Norwood-Young | Date: | Thu, 17 Jul 2008 06:26:58 +0000 |
| Subject: | Re: Soap Call Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276945@lists.php.net to get a copy of this message | ||
On Wed, 2008-07-16 at 17:44 -0700, VamVan wrote:
> Hello Guys,
>
> I have been getting a wierd soap exception lately
>
>
> [faultstring] => looks like we got no XML document
> [faultcode] => Client
> [faultcodens] =>
> http://schemas.xmlsoap.org/soap/envelope/
>
> What does that mean? The call gets properly called and it does what it needs
> to do, but the response xml is always a $fault? Did anyone have this
> problem? I am using php 5.2.6 for the info.
This is usually a malformed XML document - I had the problem recently
when fetching an XML document that wasn't complete (no </xml>). Check
what you're *actually* getting with something like:
} catch(SoapFault $exception) {
$request_xml = $client->__getLastRequestHeaders() .
$client->__getLastRequest();
$response_xml = $client->__getLastResponseHeaders() .
$client->__getLastResponse();
print "Response:".$response_xml;
print "Request:".$request_xml;
print $exception;
}