Ok, thank you for your answer. I did what you said and the output was :
SOAP::Serializer::envelope: () SOAP::Serializer::envelope: changeDeliveryState REF(0x862ab9c) 526101 +2 SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x846e +10c) SOAP::Transport::HTTP::Client::send_receive: POST http://my_serv/servi +ces/DeliveryWS?wsdl HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 813 Content-Type: application/soap; charset=utf-8 SOAPAction: "http://my_serv/services/DeliveryWS?wsdl#changeDeliverySta +te" <?xml version="1.0" encoding="UTF-8"?><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" xml +ns:namesp2="http://namespaces.soaplite.com/perl" soap:encodingStyle=" +http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas +.xmlsoap.org/soap/envelope/"><Body><changeDeliveryState xmlns="http:/ +/my_serv/services/DeliveryWS?wsdl"><c-gensym3><namesp1:Context xmlns: +namesp1="http://my_serv/services/DeliveryWS?wsdl" xsi:type="namesp2"> +<agent xsi:type="xsd:int">1</agent><user xsi:type="xsd:string">jbbec< +/user></namesp1:Context></c-gensym3><c-gensym8 xsi:type="xsd:int">526 +101</c-gensym8><c-gensym10 xsi:type="xsd:int">2</c-gensym10></changeD +eliveryState></Body></Envelope> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x874 +712c) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Ser +ver Error Cache-Control: max-age=0 Connection: close Date: Fri, 12 May 2006 06:18:47 GMT Server: Apache/2.0.46 (Red Hat) mod_jk/1.2.8 mod_ssl/2.0.46 OpenSSL/0. +9.7a Content-Language: fr Content-Type: text/xml;charset=utf-8 Expires: Fri, 12 May 2006 06:18:47 GMT Client-Date: Fri, 12 May 2006 06:20:32 GMT Client-Peer: 10.10.1.4:80 Client-Response-Num: 1 Client-Transfer-Encoding: chunked <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel +ope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// +www.w3.org/2001/XMLSchema-instance"><soapenv:Header><soapenv:Upgrade +soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mu +stUnderstand="0"><soapenv:SupportedEnvelope qname="soapenv:Envelope"/ +></soapenv:Upgrade></soapenv:Header><soapenv:Body><soapenv:Fault><fau +ltcode>soapenv:VersionMismatch</faultcode><faultstring>Version Mismat +ch</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.or +g/axis/">w1.agen.com</ns1:hostname></detail></soapenv:Fault></soapenv +:Body></soapenv:Envelope> SOAP::Deserializer::deserialize: () SOAP::Parser::decode: () SOAP::SOM::new: () SOAP::Lite::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Serializer::DESTROY: () Version MismatchSOAP::SOM::DESTROY: ()
I could see that the version of soap in my client was not 1.2, then commented the line in my client
#$soap->soapversion(1.2);
and i re-run the client and obtain this trace :
SOAP::Transport::HTTP::Client::send_receive: POST http://my_serv/servi +ces/DeliveryWS?wsdl HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 833 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://my_serv/services/DeliveryWS?wsdl#changeDeliverySta +te" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:/ +/www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xm +lsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema +" xmlns:namesp2="http://namespaces.soaplite.com/perl" soap:encodingSt +yle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://sc +hemas.xmlsoap.org/soap/envelope/"><soap:Body><changeDeliveryState xml +ns="http://my_serv/services/DeliveryWS?wsdl"><c-gensym3><namesp1:Cont +ext xmlns:namesp1="http://my_serv/services/DeliveryWS?wsdl" xsi:type= +"namesp2"><agent xsi:type="xsd:int">1</agent><user xsi:type="xsd:stri +ng">jbbec</user></namesp1:Context></c-gensym3><c-gensym8 xsi:type="xs +d:int">526101</c-gensym8><c-gensym10 xsi:type="xsd:int">2</c-gensym10 +></changeDeliveryState></soap:Body></soap:Envelope> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x874 +70b0) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Ser +ver Error Cache-Control: max-age=0 Connection: close Date: Fri, 12 May 2006 07:50:31 GMT Server: Apache/2.0.46 (Red Hat) mod_jk/1.2.8 mod_ssl/2.0.46 OpenSSL/0. +9.7a Content-Language: fr Content-Type: text/xml;charset=utf-8 Expires: Fri, 12 May 2006 07:50:31 GMT Client-Date: Fri, 12 May 2006 07:52:15 GMT Client-Peer: 10.10.1.4:80 Client-Response-Num: 1 Client-Transfer-Encoding: chunked <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel +ope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// +www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><fau +ltcode>soapenv:Server.userException</faultcode><faultstring>org.xml.s +ax.SAXException: Invalid element in com.delivery.middle.bean.fake.Con +text - Context</faultstring><detail><ns1:hostname xmlns:ns1="http://x +ml.apache.org/axis/">w1.agen.com</ns1:hostname></detail></soapenv:Fau +lt></soapenv:Body></soapenv:Envelope> SOAP::Deserializer::deserialize: () SOAP::Parser::decode: () SOAP::SOM::new: () SOAP::Lite::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Serializer::DESTROY: () org.xml.sax.SAXException: Invalid element in com.delivery.middle.bean. +fake.Context - ContextSOAP::SOM::DESTROY: ()

In reply to Re^4: using a client SOAP with SOAP::Lite with ComplexType by jeanba
in thread using a client SOAP with SOAP::Lite with ComplexType by jeanba

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.