Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

SOAP::Serializer::envelope: Client Application failed during request deserialization

by david2008 (Scribe)
on Jun 22, 2010 at 06:42 UTC ( #845843=perlquestion: print w/ replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I worked with the newest version of soap::lite 0.712 and with perl 5.10.1 on solaris SunOS 5.9 Generic_122300-29 sun4u sparc SUNW,Sun-Fire-V240 I sent an xml that begins with begins with
<?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:apachens="http://xml.apache.org/xml-soap" 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><fin +d_services xmlns="Menu/SOAP"> and ends with </find_services></soap:Body></soap:Envelope>
In tracing we have
SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Server::new: () SOAP::Transport::HTTP::Server::new: () SOAP::Transport::HTTP::CGI::new: () SOAP::Transport::HTTP::Server::handle: SOAP::Server::handle: () SOAP::Deserializer::deserialize: () SOAP::Parser::decode: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: Client Application failed during request deserialization: no element found at line 1, column 0, byte -1 at XML/Parser.pm line 18 +7 SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::CGI::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: () With version soap::lite of 7.10.08 we have the lines SOAP::SOM::new: () SOAP::Data::new: () SOAP::Data::DESTROY: () (eval): ARRAY(0xaa8b9f8) 0 tst4 SOAP::Server::handle: ARRAY(0xa9de3e0)
which are missing from the new version I opened a bug at https://rt.cpan.org/Public/Bug/Display.html?id=58538 . I wanted to know if anyone experienced the same problem. Maybe the api or something changed from 0.710.8 and 0.710.12 ?
Thanks, David

Comment on SOAP::Serializer::envelope: Client Application failed during request deserialization
Select or Download Code
Re: SOAP::Serializer::envelope: Client Application failed during request deserialization
by Anonymous Monk on Jun 22, 2010 at 07:06 UTC
    I sent an xml that begins with begins with

    Sent where from where? I'm afraid you don't provide enough information to help you as the error is akin to 500 server error, it just means the response is not xml (doesn't begin with <)

      I sent it through post from one web service to the apache server of another instance which executes the script.
      Just to see what happens, i intercepted with CGI->new and then printed the input, and it gets a valid xml.
      I agree that it looks like the xml is broken. But the downgrade of the version of soap::lite from 0.712 to 0.708 solves the problem. If it would be a broken xml, why would the downgrade help?
      I know i still don't have a self contained program but i think i solved the problem
      In the function SOAP::Transport::HTTP::CGI::handle when changing
      sysread( STDIN, $buffer, $length )
      to
      read( STDIN, $buffer, $length )
      everything works perfect. I don't know why, but it works now.
        I can confirm I had exactly the same problem and fixed successfully just by editing the file as you suggested:

        sysread( STDIN, $buffer, $length )
        to
        read( STDIN, $buffer, $length )

        Centos 5.5 + DAG repositories

        Before this, I tried reinstalling everything several times from different sources: cpan and rpms using yum+rpmforge.

        I can't believe it! how disappointing from CPAN.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://845843]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-11-28 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (199 votes), past polls