in reply to Re: SOAP::Lite server - changing method name in response
in thread SOAP::Lite server - changing method name in response
BEGIN { package MySerializer; @MySerializer::ISA = 'SOAP::Serializer'; sub envelope { $_[2] =~ s/Response$// if $_[1] =~ /^(?:method|response)$/; shift->SUPER::envelope(@_); }
#!/usr/bin/perl use SOAP::Lite +trace => 'debug'; use Data::Dumper; $HOST = "http://path/to/server.pl"; $NS = "urn:MyModule"; $PHRASE = shift; # read from the command line my $soap = SOAP::Lite ->readable(1) ->uri($NS) ->proxy($HOST); my $som = $soap->product_info_request( SOAP::Data->name("version" + => "1.0"), SOAP::Data->name("prod_no" + => "$PHRASE") ); $res = $som->result; print Dumper($som);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SOAP::Lite server - changing method name in response
by Anonymous Monk on Aug 24, 2011 at 15:26 UTC | |
by DreamT (Pilgrim) on Aug 24, 2011 at 15:47 UTC | |
by DreamT (Pilgrim) on Aug 24, 2011 at 16:00 UTC | |
by Anonymous Monk on Aug 24, 2011 at 16:06 UTC | |
by DreamT (Pilgrim) on Aug 24, 2011 at 16:18 UTC | |
by DreamT (Pilgrim) on Aug 25, 2011 at 10:40 UTC |