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

Gert Doering gert at space.net
Wed Mar 18 15:00:36 GMT 2009


Hi,

... and actually, there's "woe #3"...

Issue #3:  when talking to a SOAP::Lite server that wants to send back
a SOAP::Fault, there will be a HTTP code 500:

---------------------- snip -----------------------
HTTP/1.1 500 Internal Server Error
Date: Wed, 18 Mar 2009 14:49:13 GMT
Server: Apache/2.0.63 (FreeBSD) PHP/5.2.8 with Suhosin-Patch mod_fastcgi/2.4.6 mod_ssl/2.0.63 OpenSSL/0.9.8i mod_perl/2.0.4 Perl/v5.8.9
SOAPServer: SOAP::Lite/Perl/0.710.08
Content-Length: 637
Connection: close
Content-Type: text/xml; charset=utf-8

<?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><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Application failed during request deserialization: 
not well-formed (invalid token) at line 2, column 382, byte 421 at /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser.pm line 187
</faultstring></soap:Fault></soap:Body></soap:Envelope>
---------------------- snip -----------------------

... which leads to the test program failing with:

$ ./tick_local_selftest_umlaut.pl
native string is not UTF8
native string is UTF8
$VAR1 = {
          'parameters' => {
                            'password' => 'pass',
                            'userName' => 'user'
                          },
          'WEBINT_TICKETID' => 'C0815-4711-äöü',
          'WEBINT_CUSTTICKETID' => '200711250087'
        };
warning: Internal Server Error
$VAR1 = \undef;


... instead of properly signalling the FAULT up-stack.

Should it be that way?

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