AW: [soaplite] Problems using SOAP::Data as method parameters
> Hi, I have been banging my head against the wall for a fewIn this case, SOAP::Lite tries to construct the request itself.
> days attempting to get SOAP requests working with this WSDL.
> I am trying to send a request to a method using SOAP::Data
> and SOAP::Header objects, but I keep getting a response of
> "String value expected instead of SOAP::Data reference"
> Below is my code -- any ideas what I am doing wrong? I am new
> to SOAP, so excuse me if I am missing something fundamental.
> # location of the wsdl & namespace
> my $wsdl =
> my $apins = 'http://www.scene7.com/IpsApi/xsd/2010-01-31';
> # authentication request headers
> my @headers = (
> # make proxy for the service
> my $soap = SOAP::Lite->service($wsdl);
> # request method
> print $soap->checkLogin( SOAP::Data->name(email =>
> 'testuser'), SOAP::Data->name(password => 'testpassword'), @headers );
use $soap->call('checkLogin',$SOAP::Data,@headers) instead
eventually you have to completely ignore the wsdl and configure the $soap
$soap = SOAP::Lite->uri(...)->proxy(...)
> I tried using the call method previously but it would alwayswith proxy($url) you set the endpoint url, i.e. the url you will find in the
> warn me that no proxy was defined. I was unsure what value to
> use as a proxy -- is that something that is defined anywhere
> in the WSDL file? I was looking at the CPAN documentation and
(typically, near the end of the wsdl)
> Also, is there a way for me to view the XML I am producingyep.
> with my SOAP::Data / SOAP::Header objects to debug what I am
use SOAP::Lite (+trace => [qw(transport debug parameters)]);