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!
|
|---|