I have read the documentation for useragent, and have made it work properly in terms of connecting to a server that requires a client side certificate, with full validation. However, while I can correctly construct the XML required for the SOAP data, I can't seem to send it correctly to the server. I have tried function request in two ways: $ua->request($r,'fsd.xml'); AND $ua->request($r,$data);, but in both cases, I get an exception from the server complaining that it gets no data.

I guess this boils down to two questions: 1) How do I send SOAP XML data? 2) How would I write a CGI program, on one of my own servers, that I could use to verify that the SOAP XML data is received correctly (NB: I know well how to write CGI scripts to process form data, but this isn't form data.)

I'd appreciate any insights you can provide. I have read the documentation, but it isn't clear enough for me to resolve this.

Thanks

Ted


In reply to I don't understand how to send SOAP data using LWP's user agent by ted.byers

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.