Hello everybody,
I am a simple Perl user (not programmer ;) ) and need some help. My script is sending soap requests (using SOAP::Lite) to some thirdparty system. Everything worked just fine, until recently, when the system was upgraded and now is more strict, i guess, concering incoming requests. The same soap request sent via SOAP UI is processed just fine, but mine returns soap error "[Ljava.lang.String; cannot be cast to java.lang.String".
After consulting google and some trial/error, I surmise that the issue is somewhere in the transport parameters, so I would like to change them to be more like those used by SOAP UI (where possible), but I have no clue how :/. Could you please help?

I have attached below what wireshark logged.

Sent by my perl script:
POST /OELAdapterWebService HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: 172.26.9.9:8120 User-Agent: SOAP::Lite/Perl/1.06 Content-Length: 2728 Content-Type: text/xml SOAPAction: "/OELAdapter/ProcessDefinitions/Production/Services/OELAda +pter/SoapOverHttp/OELAdapter.serviceagent//ProcessOrderAsync" <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oel="http://xxx.com/OELAdapter" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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:Body> </soapenv:Envelope> HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Content-Length: 376 Date: Fri, 02 Jun 2017 08:40:20 GMT Connection: close <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/env +elope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode xmlns="">SO +AP-ENV:Server.InternalServerError</faultcode> <faultstring xmlns=""> +[Ljava.lang.String; cannot be cast to java.lang.String</faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Sent from SOAP UI:
POST /OELAdapterWebService HTTP/1.1 Connection: close Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "/OELAdapter/ProcessDefinitions/Production/Services/OELAda +pter/SoapOverHttp/OELAdapter.serviceagent//ProcessOrderAsync" Content-Length: 3088 Host: 172.26.9.9:8120 User-Agent: Apache-HttpClient/4.1.1 (java 1.5) <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oel="http://xxx.com/OELAdapter" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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:Body> </soapenv:Envelope> HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Content-Length: 376 Date: Fri, 02 Jun 2017 08:58:39 GMT Connection: close

In reply to SOAP::Lite headers by eukiph

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.