I'm trying to use SOAP::Lite to get information from a remote server. Unfortunately, it only ever seems to reply '405 Method Not Allowed', and tech support insist they can't help me without a dump of the XML that I'm sending to their server. None of them speak Perl (heathens!)

How do I get SOAP::Lite to dump the XML it's trying to send? I've tried use SOAP::Lite +trace => [qw(transport)], but the 405 generates a runtime error and I can't output the trace data. I don't know where the web server is stuffing STDERR, but it's not anywhere I can see it. And I don't have access to the error log :(

Redirecting STDERR seems to be the way forward, but I don't know where on the server I can write it *to* - the server process doesn't have write permission to most places (sensible move, but not helpful here!)

Maybe I could capture STDERR to a string variable, and have that variable automatically dumped when Perl die()s? I have a vague feeling that should be possible, but my Google-fu is weak on all of this...

Thanks!


In reply to Dumping the XML request with SOAP::Lite by Yer Mom

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.