I was messing with something similar yesterday (in trying to adjust the transport, where I was getting the other connection info from a wsdl)

Unfortunately, I had no luck, and resorted to giving up on the wsdl, and going back to specifying the proxy and uri instead.

I was going with a different approach, however, if you'd like to try the logic I was using, but you'll have to rework part of SOAP::Lite:

use SOAP::Lite; my $soap = SOAP::Lite->service( $wsdl_url ); $soap->transport()->credentials( $hostid, $realm, $user, $pass );

The problem is that the transport hasn't been fully initialized yet, so there's no LWP::UserAgent (or whatever your transport is) to start fiddling with.

In my case, I had a workaround (place the user/password in the proxy string), so ended up going that route, but it kept me from being able to use the wsdl directly.

To get my logic to work, you'd probably have to find where the transport gets initialized, and force that to run earlier (I'd do it myself, but I'm bogged down with more pressing concerns this week (month?).)


In reply to Re: SOAP::Lite and proxy settings by jhourcle
in thread SOAP::Lite and proxy settings by mrguy123

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.