Problems with SOAP Fault
Nicolás Vázquez Sabater <[email protected]>
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <1064531197.1889.21.camel@localhost> |
Hi.
I'm developing a SOAP client tha uses te Google API. The parser i using
is ExPat v 1.95.
I have a problem parsing messages SOAP Fault of this kind:
HTTP/1.0 500 Internal Server Error
Date: Mon, 22 Sep 2003 22:46:37 GMT
Server: e h c a p a
Content-Length: 541
Content-Type: text/xml; charset=utf-8
Age: 1
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>
SOAP-ENV:Client
</faultcode>
<faultstring>
parsing error: org.xml.sax.SAXParseException:
The element type "phrase" must be terminated
by the matching end-tag "</phrase>".
</faultstring>
<faultactor>
/search/beta2
</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The request has the character ñ, my problen is not using that
character. My problem is that the parser makes an exception while
parsesthe response message because there is and </phrase> tag in the
content of faultstring element.
I probed sendig a request to Google server which has a tag in his
elements and it crashes while parsing.
I think that the problem is in the Apache SOAP server where is installed
Google API, but im not sure.
I will be thankfull if you answer me.
Nicolas.
PD: Sorry, my english is very very poor. :(