Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Problem with SOAP::Lite

by ptomblin (Initiate)
on Mar 19, 2013 at 16:13 UTC ( #1024332=perlquestion: print w/ replies, xml ) Need Help??
ptomblin has asked for the wisdom of the Perl Monks concerning the following question:

I'm really a newbie to SOAP, and when I make this SOAP::Lite call, it seems to have problems deserializing the results. This is what I get back when I call it with "use SOAP::Lite q/trace/;" (I've tried to sanitize what might be sensitive info, let me know if you need access to the unsanitized version)
SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Lite::new: () SOAP::Transport::HTTP::Client::new: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: uaas:getOrganizationListInput SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x9757 +30) SOAP::Transport::HTTP::Client::send_receive: POST http://sv-websvc-t2: +9087/UAASCIAMWebServices/services/UAASPort HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 758 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.myemployer.com/ciam/services/uaas#getOrganizat +ionListInput" <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:uaas="http://www.myemployer.com/ciam/services/uaas" xmlns:ciam_types="http://associate.insidemyemployer.com/ciamservic +es/service/ciam_types" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uaas_types="http://associate.insidemyemployer.com/ciamservic +es/service/uaas_types" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <uaas:getOrganizationListInput xmlns="http://www.myemployer.com/ci +am/services/uaas" xsi:nil="true" /> </soap:Body> </soap:Envelope> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x126 +2480) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK Connection: Close Date: Tue, 19 Mar 2013 15:27:47 GMT Server: WebSphere Application Server/8.0 Content-Language: en-US Content-Length: 11672 Content-Type: text/xml; charset=utf-8 Client-Date: Tue, 19 Mar 2013 15:27:48 GMT Client-Peer: 170.22.136.114:9087 Client-Response-Num: 1 X-Powered-By: Servlet/3.0 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel +ope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns +:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/ +2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><p672:getOrga +nizationListOutput xmlns:p490="http://associate.insidemyemployer.com/ +ciamservices/service/uaas_types" xmlns:p672="http://www.myemployer.co +m/ciam/services/uaas"><response><responseCode>9000</responseCode><res +ponseDescription>Success</responseDescription></response><p490:organi +zations><id>506</id><taxId>00000000</taxId><legalName>ABC</legalName> +</p490:organizations><p490:organizations><id>1577487</id><taxId>00000 +000</taxId><legalName>ABC</legalName><branchId>100</branchId><branchN +ame>DEF</branchName></p490:organizations><p490:organizations><id>1577 +480</id><taxId>00000000</taxId><legalName>ABC</legalName><branchId>10 +0</branchId><branchName>DEF</branchName></p490:organizations><p490:or +ganizations><id>6</id><taxId>00000000</taxId><legalName>ABC</legalNam +e><branchId>AMEX006</branchId><branchName>DEF</branchName></p490:orga +nizations><p490:organizations><id>7</id><taxId>00000000</taxId><legal +Name>ABC</legalName><branchId>AMEX002</branchId><branchName>DEF</bran +chName></p490:organizations><p490:organizations><id>202</id><legalNam +e>ABC</legalName></p490:organizations><p490:organizations><id>252</id +><legalName>ABC</legalName></p490:organizations><p490:organizations>< +id>201</id><legalName>ABC</legalName></p490:organizations><p490:organ +izations><id>101</id><legalName>ABC</legalName><branchName>DEF</branc +hName></p490:organizations><p490:organizations><id>102</id><taxId>000 +00000</taxId><legalName>ABC</legalName><branchId>EMP123</branchId><br +anchName>DEF</branchName></p490:organizations><p490:organizations><id +>108</id><taxId>00000000</taxId><legalName>ABC</legalName><branchId>B +C12334</branchId><branchName>DEF</branchName></p490:organizations><p4 +90:organizations><id>113</id><legalName>ABC</legalName><branchName>DE +F</branchName></p490:organizations><p490:organizations><id>1577494</i +d><taxId>00000000</taxId><legalName>ABC</legalName><branchId>100</bra +nchId><branchName>DEF</branchName></p490:organizations><p490:organiza +tions><id>1577493</id><taxId>00000000</taxId><legalName>ABC</legalNam +e><branchId>100</branchId><branchName>DEF</branchName></p490:organiza +tions><p490:organizations><id>105</id><taxId>00000000</taxId><legalNa +me>ABC</legalName><branchId>bb1</branchId><branchName>DEF</branchName +></p490:organizations><p490:organizations><id>1151</id><taxId>0000000 +0</taxId><legalName>ABC</legalName></p490:organizations><p490:organiz +ations><id>1302</id><taxId>00000000</taxId><legalName>ABC</legalName> +<branchId>H001</branchId><branchName>DEF</branchName></p490:organizat +ions><p490:organizations><id>1303</id><taxId>00000000</taxId><legalNa +me>ABC</legalName><branchId>4343</branchId><branchName>DEF</branchNam +e></p490:organizations><p490:organizations><id>116</id><legalName>ABC +</legalName><branchName>DEF</branchName></p490:organizations><p490:or +ganizations><id>1577489</id><taxId>00000000</taxId><legalName>ABC</le +galName><branchId>100</branchId><branchName>DEF</branchName></p490:or +ganizations><p490:organizations><id>301</id><taxId>00000000</taxId><l +egalName>ABC</legalName><branchId>275</branchId><branchName>DEF</bran +chName></p490:organizations><p490:organizations><id>602</id><taxId>00 +000000</taxId><legalName>ABC</legalName></p490:organizations><p490:or +ganizations><id>1577497</id><taxId>00000000</taxId><legalName>ABC</le +galName><branchId>100</branchId><branchName>DEF</branchName></p490:or +ganizations><p490:organizations><id>1577484</id><taxId>00000000</taxI +d><legalName>ABC</legalName><branchId>100</branchId><branchName>DEF</ +branchName></p490:organizations><p490:organizations><id>32053</id><ta +xId>00000000</taxId><legalName>ABC</legalName></p490:organizations><p +490:organizations><id>1301</id><taxId>00000000</taxId><legalName>ABC< +/legalName><branchId>213</branchId><branchName>DEF</branchName></p490 +:organizations><p490:organizations><id>1577486</id><taxId>00000000</t +axId><legalName>ABC</legalName><branchId>100</branchId><branchName>DE +F</branchName></p490:organizations><p490:organizations><id>351</id><t +axId>00000000</taxId><legalName>ABC</legalName><branchId>271</branchI +d><branchName>DEF</branchName></p490:organizations><p490:organization +s><id>1577496</id><taxId>00000000</taxId><legalName>ABC</legalName><b +ranchId>100</branchId><branchName>DEF</branchName></p490:organization +s><p490:organizations><id>14435</id><taxId>00000000</taxId><legalName +>ABC</legalName></p490:organizations><p490:organizations><id>605</id> +<taxId>00000000</taxId><legalName>ABC</legalName></p490:organizations +><p490:organizations><id>1577490</id><taxId>00000000</taxId><legalNam +e>ABC</legalName><branchId>100</branchId><branchName>DEF</branchName> +</p490:organizations><p490:organizations><id>1604</id><taxId>00000000 +</taxId><legalName>ABC</legalName><branchId>1009</branchId><branchNam +e>DEF</branchName></p490:organizations><p490:organizations><id>1654</ +id><taxId>00000000</taxId><legalName>ABC</legalName><branchName>DEF</ +branchName></p490:organizations><p490:organizations><id>1655</id><tax +Id>00000000</taxId><legalName>ABC</legalName><branchName>DEF</branchN +ame></p490:organizations><p490:organizations><id>253</id><legalName>A +BC</legalName></p490:organizations><p490:organizations><id>1577481</i +d><taxId>00000000</taxId><legalName>ABC</legalName><branchId>100</bra +nchId><branchName>DEF</branchName></p490:organizations><p490:organiza +tions><id>1577488</id><taxId>00000000</taxId><legalName>ABC</legalNam +e><branchId>100</branchId><branchName>DEF</branchName></p490:organiza +tions><p490:organizations><id>1577495</id><taxId>00000000</taxId><leg +alName>ABC</legalName><branchId>100</branchId><branchName>DEF</branch +Name></p490:organizations><p490:organizations><id>256</id><taxId>0000 +0000</taxId><legalName>ABC</legalName></p490:organizations><p490:orga +nizations><id>1577483</id><taxId>00000000</taxId><legalName>ABC</lega +lName><branchId>100</branchId><branchName>DEF</branchName></p490:orga +nizations><p490:organizations><id>1577491</id><taxId>00000000</taxId> +<legalName>ABC</legalName><branchId>100</branchId><branchName>DEF</br +anchName></p490:organizations><p490:organizations><id>50</id><taxId>0 +0000000</taxId><legalName>ABC</legalName></p490:organizations><p490:o +rganizations><id>1577485</id><taxId>00000000</taxId><legalName>ABC</l +egalName><branchId>100</branchId><branchName>DEF</branchName></p490:o +rganizations><p490:organizations><id>258</id><legalName>ABC</legalNam +e></p490:organizations><p490:organizations><id>203</id><taxId>0000000 +0</taxId><legalName>ABC</legalName><branchName>DEF</branchName></p490 +:organizations><p490:organizations><id>1577482</id><taxId>00000000</t +axId><legalName>ABC</legalName><branchId>100</branchId><branchName>DE +F</branchName></p490:organizations><p490:organizations><id>251</id><t +axId>00000000</taxId><legalName>ABC</legalName></p490:organizations>< +p490:organizations><id>117</id><legalName>ABC</legalName><branchName> +DEF</branchName></p490:organizations><p490:organizations><id>118</id> +<legalName>ABC</legalName><branchName>DEF</branchName></p490:organiza +tions><p490:organizations><id>151</id><legalName>ABC</legalName></p49 +0:organizations><p490:organizations><id>155</id><taxId>00000000</taxI +d><legalName>ABC</legalName><branchId>TL004</branchId><branchName>DEF +</branchName></p490:organizations><p490:organizations><id>255</id><ta +xId>00000000</taxId><legalName>ABC</legalName></p490:organizations><p +490:organizations><id>119</id><taxId>00000000</taxId><legalName>ABC</ +legalName><branchId>111111</branchId><branchName>DEF</branchName></p4 +90:organizations><p490:organizations><id>1304</id><taxId>00000000</ta +xId><legalName>ABC</legalName><branchName>DEF</branchName></p490:orga +nizations><p490:organizations><id>1308</id><taxId>00000000</taxId><le +galName>ABC</legalName><branchName>DEF</branchName></p490:organizatio +ns><p490:organizations><id>154</id><taxId>00000000</taxId><legalName> +ABC</legalName><branchId>123</branchId><branchName>DEF</branchName></ +p490:organizations><p490:organizations><id>120</id><taxId>00000000</t +axId><legalName>ABC</legalName><branchId>999999</branchId><branchName +>DEF</branchName></p490:organizations><p490:organizations><id>51</id> +<legalName>ABC</legalName><branchName>DEF</branchName></p490:organiza +tions><p490:organizations><id>2554</id><taxId>00000000</taxId><legalN +ame>ABC</legalName><branchId>383</branchId><branchName>DEF</branchNam +e></p490:organizations><p490:organizations><id>2604</id><taxId>000000 +00</taxId><legalName>ABC</legalName><branchId>384</branchId><branchNa +me>DEF</branchName></p490:organizations><p490:organizations><id>107</ +id><taxId>00000000</taxId><legalName>ABC</legalName><branchId>T878787 +</branchId><branchName>DEF</branchName></p490:organizations><p490:org +anizations><id>104</id><taxId>00000000</taxId><legalName>ABC</legalNa +me><branchId>78906</branchId><branchName>DEF</branchName></p490:organ +izations><p490:organizations><id>407</id><taxId>00000000</taxId><lega +lName>ABC</legalName></p490:organizations><p490:organizations><id>408 +</id><taxId>00000000</taxId><legalName>ABC</legalName></p490:organiza +tions><p490:organizations><id>549</id><taxId>00000000</taxId><legalNa +me>ABC</legalName></p490:organizations><p490:organizations><id>257</i +d><legalName>ABC</legalName><branchId>1586</branchId><branchName>DEF< +/branchName></p490:organizations><p490:organizations><id>2654</id><ta +xId>00000000</taxId><legalName>ABC</legalName><branchName>DEF</branch +Name></p490:organizations><p490:organizations><id>406</id><taxId>0000 +0000</taxId><legalName>ABC</legalName></p490:organizations><p490:orga +nizations><id>403</id><taxId>00000000</taxId><legalName>ABC</legalNam +e></p490:organizations><p490:organizations><id>405</id><taxId>0000000 +0</taxId><legalName>ABC</legalName></p490:organizations><p490:organiz +ations><id>404</id><taxId>00000000</taxId><legalName>ABC</legalName>< +/p490:organizations><p490:organizations><id>254</id><legalName>ABC</l +egalName></p490:organizations><p490:organizations><id>112</id><taxId> +00000000</taxId><branchName>DEF</branchName></p490:organizations><p49 +0:organizations><id>111</id><taxId>00000000</taxId><branchName>DEF</b +ranchName></p490:organizations></p672:getOrganizationListOutput></soa +penv:Body></soapenv:Envelope> SOAP::Deserializer::deserialize: () SOAP::Parser::decode: () SOAP::SOM::new: () Incorrect parameter at /opt/perl/lib/site_perl/5.12.2/SOAP/Lite.pm lin +e 1993. SOAP::SOM::DESTROY: () SOAP::Lite::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Transport::HTTP::Client::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: ()
I ran the result XML through xmllint and it validates just fine. Can somebody tell me if I'm doing something wrong, or if I've hit a bug in SOAP::Lite?

Comment on Problem with SOAP::Lite
Download Code
Re: Problem with SOAP::Lite (upgrade)
by Anonymous Monk on Mar 19, 2013 at 16:25 UTC
Re: Problem with SOAP::Lite
by Tux (Monsignor) on Mar 19, 2013 at 16:29 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-02 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls