I'm trying to connect to a WebLogic (Oracle) SOAP service. I was given an example using LWP::UserAgent that works with a hand coded envelope, but I liked to use a Perl SOAP module instead. Using that small working LWP script, substituting an envelope generated by SOAP::Lite doesn't work against the server (it complains "Cannot find dispatch method"). But an envelope generated by SOAP::WSDL::Manual, using the WSDL supplied by the WebLogic server does. Great! The thing is I cannot figure out is how to do the authentication with SOAP::WSDL::Manual. The document SOAP::WSDL::Manual::Cookbook has some advice on authentication that I'm afraid I just don't understand. Basically what works with LWP::UserAgent is:
my $CREDENTIALS = 'Basic ' . MIME::Base64::encode($UNAM . ':' . $PWD); my $request = HTTP::Request->new(POST => $END_POINT); $request->header(Authorization => $CREDENTIALS);
What I don't understand is how to reach into the transport layer within SOAP::WSDL::Manual object to set this. Heck, I haven't even figured out what modules are being used to do the HTTP. I'm hoping somebody can either help me with the authentication problem, or suggest a different Perl SOAP module known to play nice with Oracle's WebLogic SOAP services.

In reply to SOAP::WSDL::Manual and WebLogic authentication by Bill.Costa

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.