Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Anonymous Monk
on Jan 29, 2015 at 02:10 UTC ( [id://1114849]=note: print w/replies, xml ) Need Help??


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

...

UTSL, Re: Obtaining both XML and parsed object from SOAP::Lite?, Re: Suppressing nil attribute in empty SOAP tag

:)

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

Replies are listed 'Best First'.
Re^2: [SOAP::Lite] what happens when I call $client->call('Method', \%params)?
by three18ti (Monk) on Jan 29, 2015 at 03:01 UTC

    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://1114849]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found