Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: [SOAP::Lite] what happens when I call $client->call('Method', \%params)?

by three18ti (Monk)
on Jan 29, 2015 at 03:01 UTC ( [id://1114857]=note: print w/replies, xml ) Need Help??


in reply to Re: [SOAP::Lite] what happens when I call $client->call('Method', \%params)?
in thread [SOAP::Lite] what happens when I call $client->call('Method', \%params)?

Hello

Thanks for trying to help again. I did read the source and I'm not sure I really understand what's going on so was hoping someone could help explain what's actually going on. Where is the actual XML generated?

I'm assuming it's in this block of code:

my $response = $self->transport->send_receive( context => $self, # this is provided for context endpoint => $self->endpoint, action => scalar($self->on_action->($serializer->uriformetho +d($_[0]))), # leave only parameters so we can later update them if + required envelope => $serializer->envelope(method => shift, @_), encoding => $serializer->encoding, parts => @{$self->packager->parts} ? $self->packager->parts + : undef, );

because the very next line appears to deal with a response:

return $response if $self->outputxml;

Is it really as simple as prefixing my '->envelope' call with '->envelope(method =>'?... that would be really nice.

EDIT: Holy Crap Yes!!!! that's all I had to do!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found