D
droesler
Hi,
Is there a way to suppress the surrounding methodName element of the
soap:Body section of the SOAP envelope?
The web service sends a fault back saying there is an unknown part
(the methodName element) in the request. This web service is
implemented as a doc/literal type if that makes a difference.
I looked at SOAP::Serializer but it wasn't clear to me how to apply
that to the SOAP object being sent with the methodName call.
It doesn't make any difference if I use the wsdl method or the lower
level uri/proxy method.
#/usr/bin/per
use strict;
use warnings;
use SOAP::Lite;
my $svc = SOAP::Lite ->service(q{,,,wsdl location ...});
my $result = $svc->methodName( <method params> );
or
my $soap = SOAP::Lite ->uri(...) ->on_action( sub{...}) ->proxy(...);
my $result = $soap->methodName(<method params>);
I thought using the wsdl method would construct the required soap:Body
part, but testing the web service in a tool such as soapUI it doesn't
wrap the soap:Body contents with a methodName element.
Thanks
Dennis
Is there a way to suppress the surrounding methodName element of the
soap:Body section of the SOAP envelope?
The web service sends a fault back saying there is an unknown part
(the methodName element) in the request. This web service is
implemented as a doc/literal type if that makes a difference.
I looked at SOAP::Serializer but it wasn't clear to me how to apply
that to the SOAP object being sent with the methodName call.
It doesn't make any difference if I use the wsdl method or the lower
level uri/proxy method.
#/usr/bin/per
use strict;
use warnings;
use SOAP::Lite;
my $svc = SOAP::Lite ->service(q{,,,wsdl location ...});
my $result = $svc->methodName( <method params> );
or
my $soap = SOAP::Lite ->uri(...) ->on_action( sub{...}) ->proxy(...);
my $result = $soap->methodName(<method params>);
I thought using the wsdl method would construct the required soap:Body
part, but testing the web service in a tool such as soapUI it doesn't
wrap the soap:Body contents with a methodName element.
Thanks
Dennis