Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sending HTTP credentials with SOAP

by astroboy (Chaplain)
on Mar 17, 2010 at 04:03 UTC ( #829076=note: print w/ replies, xml ) Need Help??


in reply to Sending HTTP credentials with SOAP

OK, I've found a hokey solution (where My::Interface is the interface class generated by SOAP::WSDL):

my $service = My::Interface->new; my $endpoint = $service->get_endpoint; $endpoint =~ s!://!://$user:$pass@!; $service->proxy($endpoint);

This inserts "$user:$pass@" after the "http(s)://". It's not nice, but it works in this instance, but it could be a bit brittle ...


Comment on Re: Sending HTTP credentials with SOAP
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829076]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-07 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls