[SOAP] PEAR::SOAP SOAP_Fault interop problem with Perl SOAP::Lite?
| From: | (Jonathan Schilling) | Date: | Mon, 10 Mar 2003 15:28:00 +0000 |
| Subject: | [SOAP] PEAR::SOAP SOAP_Fault interop problem with Perl SOAP::Lite? | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-463@lists.php.net to get a copy of this message | ||
> From shane@caraveo.com Sun Mar 9 15:14:01 2003
>
> > [...] But Perl SOAP::Lite clients are still not;
> > they give a diagnostic and then the full XML fault packet:
> >
> > [jls@oshea perl]$ perl hello2-php.pl foo
> > Unrecognized type '{http://www.w3.org/2001/XMLSchema}QName'
> >
> > <faultcode xsi:type="xsd:QName">SOAP-ENV:12345</faultcode>
>
> > Do you know what the
> > "Unrecognized type
> > '{http://www.w3.org/2001/XMLSchema}QName'"
> > diagnostic is about? Is this a known interop problem?
>
> Probably that SOAP-ENV:12345 is not a valid SOAP faultcode. Take a look
> at the SOAP spec, only a few codes are valid, and they mean very
> specific things. You should probably only be using either
> SOAP-ENV:Client or SOAP-ENV:Server.
Even after the correction of the fault code, Perl SOAP::Lite
still gives the same error:
[jls@oshea perl]$ perl hello2-php.pl foo
Unrecognized type '{http://www.w3.org/2001/XMLSchema}QName'
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:QName">SOAP-ENV:Client</faultcode>
<faultstring xsi:type="xsd:string">Do not pass me foo!</faultstring>
<faultactor xsi:type="xsd:anyURI"></faultactor>
<detail xsi:type="xsd:string"></detail></SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
at hello2-php.pl line 10
I don't see anything wrong with the QName type, and the whole
envelope looks essentially the same as fault envelopes I've seen
from other SOAP implementations. So what could be going wrong here?
Jonathan Schilling Caldera/SCO jls@sco.com