Hello I'm having an issue with SOAP::Lite that I can't get the hang of. I'm on a Debian server and the server I'm posting to is a Microsoft-IIS/6.0 with ASP.net and I get everything to work and all but I get a strange behavior that I can't find any info on. The POST message gets sent and the server responds with the correct data. But then another POST call is made with the same SOAPAction but with "/code" on the end. I haven't been able to find anything on this anywhere and I haven't been able what it is that initiate the second call, if it's SOAP::lite or the windows server. Here's the debuginfo:
SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Lite::new: () SOAP::Lite::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Data::new: () SOAP::Serializer::envelope: SOAP::Data=HASH(0xbe3890) SOAP::Data=HASH( +0xbe37d0) SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0xbe34 +a0) SOAP::Transport::HTTP::Client::send_receive: POST xxxx HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 712 Content-Type: text/xml SOAPAction: xxxxxx POST XML SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x9f7 +a60) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK Connection: close Date: Thu, 12 Feb 2009 11:44:07 GMT Server: Microsoft-IIS/6.0 Content-Type: text/xml; charset=utf-8 Client-Date: Thu, 12 Feb 2009 11:44:07 GMT Client-Peer: 192.168.34.148:80 Client-Response-Num: 1 Set-Cookie: JSESSIONID=xxxx path=/xxxx X-Powered-By: ASP.NET X-Powered-By: ServletExec/5.0p06, Servlet/2.4, JSP/2.0 XML response comes here SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: code SOAP::Data::new: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0xbe34 +a0) SOAP::Transport::HTTP::Client::send_receive: POST xxxx HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap User-Agent: SOAP::Lite/Perl/0.071004 Content-Length: 466 Content-Type: text/xml SOAPAction: xxxx/code //why does this happen? I'm not doing this as + far as I know hehe POST XML SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0xe9c +b50) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal ser +ver error Connection: close Date: Thu, 12 Feb 2009 11:44:07 GMT Server: Microsoft-IIS/6.0 Content-Type: text/xml; charset=utf-8 Client-Date: Thu, 12 Feb 2009 11:44:07 GMT Client-Peer: 192.168.34.148:80 Client-Response-Num: 1 Set-Cookie: JSESSIONID=xxxx path=/xxxx X-Powered-By: ASP.NET X-Powered-By: ServletExec/5.0p06, Servlet/2.4, JSP/2.0 <?xml version="1.0" encoding="UTF-8"?> <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> <faultcode>soapenv:Server.userException</faultcode> <faultstring>xxxx</faultstring> <detail/> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Transport::HTTP::Client::DESTROY: () SOAP::Data::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: () SOAP::Lite::DESTROY: () SOAP::Data::DESTROY: () SOAP::Lite::DESTROY: ()
Anyone got any idea why the second call is made? I don't want the second call but can't figure out how to stop it.

In reply to Issue with SOAP::Lite making two POSTs by perlden

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.