[Xml-compile] XML::Compile::SOAP 2.02 woes (3)

Gert Doering gert at space.net
Fri Mar 20 17:48:38 GMT 2009


Hi,

following up on this.  This does not only happen with SOAP::Lite on
the server side (where I could be convinced that this is a SOAP::Lite
breakage), but we also see this on a production server, on Telefonica
side.

This is what we get back, according to XML::Compile::SOAP's trace:


---------------------------------------------------
...
                   'http_response' => bless( {
                                               '_protocol' => 'HTTP/1.1',
                                               '_content' => '<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>java.io.UTFDataFormatException: Invalid byte 2 of 4-byte UTF-8 sequence.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>',
                                               '_rc' => 500,
                                               '_headers' => bless( {
                                                                      'client-date' => 'Fri, 20 Mar 2009 17:44:06 GMT',
                                                                      'content-type' => 'text/xml; charset=utf-8',
                                                                      'connection' => 'close',
                                                                      'x-powered-by' => 'ServletExec/5.0, Servlet/2.4, JSP/2.0',
                                                                      'client-response-num' => 1,
                                                                      'date' => 'Fri, 20 Mar 2009 17:44:06 GMT',
                                                                      'client-transfer-encoding' => [
                                                                                                      'chunked'
                                                                                                    ],
                                                                      'client-peer' => '195.71.131.43:80',
                                                                      'server' => 'Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7f'
                                                                    }, 'HTTP::Headers' ),
                                               '_msg' => 'Internal server error',
...
                   'error' => 'no xml as answer',
...
                 }, 'XML::Compile::SOAP::Trace' );
---------------------------------------------------

The reason for the fault is woe#2, UTF-8 encoding-or-not, and discussed in
a separate thread - but that's not the main point here.

The problem is that XML::Compile::SOAP doesn't signal this fault as such
(in $answer->{Fault}), but just prints a warning to STDERR and I need to
look into the traces to see why it's faulting.

regards,

Gert Doering
        -- NetMaster
-- 
Total number of prefixes smaller than registry allocations:  128645

SpaceNet AG                        Vorstand: Sebastian v. Bomhard
Joseph-Dollinger-Bogen 14          Aufsichtsratsvors.: A. Grundner-Culemann
D-80807 Muenchen                   HRB: 136055 (AG Muenchen)
Tel: +49 (89) 32356-444            USt-IdNr.: DE813185279



More information about the Xml-compile mailing list