Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: soap::lite and authorization

by fritz1968 (Sexton)
on Aug 30, 2012 at 19:21 UTC ( #990828=note: print w/replies, xml ) Need Help??


in reply to Re^3: soap::lite and authorization
in thread soap::lite and authorization

I figured it out. Adding in a header in the correct spot made all the difference:

my $lite = SOAP::Lite->new()->on_action(sub { join '/', @_ } ) ->proxy($args->{proxy}), SOAP::Header->name('Authentication' => SOAP::Header->value( SOAP::Header->name('user')->value($zID), SOAP::Header->name('password')->value($zPW))); my $response = $lite->call( SOAP::Data->name('fetchAndLock') ->attr({ 'xmlns', $args->{xmlns}}), SOAP::Data->name("first")->value($args->{first}), SOAP::Data->name("max")->value($args->{max}), SOAP::Data->name("provider")->value($args->{provider}), SOAP::Data->name("action")->value($args->{action}), SOAP::Data->name("state")->value($args->{state}), );

Replies are listed 'Best First'.
Re^5: soap::lite and authorization
by Anonymous Monk on Aug 30, 2012 at 19:43 UTC

    I figured it out. Adding in a header in the correct spot made all the difference:

    LOL, that is crazy, there is no way to guess at that

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-08-21 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (203 votes). Check out past polls.

    Notices?