Ok, I got LWP via HTTPS working. I also have the XML to send. Next step...how do I put the SOAP wrapper around the XML payload and then send it via LWP?

Oh boy :) See Re: SOAP XML Request over HTTPS, look inside the modules like for example https://metacpan.org/source/IVANWILLS/W3C-SOAP-0.10/lib/W3C/SOAP/Client.pm

sub post { my ($self, $action, $xml) = @_; my $url = $self->location; cluck "The mech attribute has been deprecated and is replaced by u +a attribute!" if $self->has_mech; $self->clear_response; my $response = $self->ua->post( $url, 'Content-Type' => $self->content_type, 'SOAPAction' => qq{"$action"}, 'Proxy-Connection' => 'Keep-Alive', 'Accept-Encoding' => 'gzip, deflate', Content => $xml->toString, ); $self->response($response); return $response->decoded_content; }

 $self->ua is LWP::UserAgent object ... or it can be a WWW::Mechanize (more convenient)

This is like low level SOAP, good luck to you :)


In reply to Re^3: SOAP XML Request over HTTPS by Anonymous Monk
in thread SOAP XML Request over HTTPS by jcagle

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.