<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body style="font-family:Arial;font-size:14px"><p>hi list,<br><br>
using version 3.02 of XML::Compile::WSDL11, and version 3.04 of XML::Compile::SOAP11, I am trying step-by-step to get a SOAP call constructed with<br><br>
my $wsdl = XML::Compile::WSDL11->new('SAMService.wsdl');<br>
$wsdl->addSchemaDirs($schema_dir);<br>
$wsdl->importDefinitions(@otherSchemasList);<br><br>
my $server = "10.2.3.4"; # obviously faked for this mail<br>
my $endpoint = "/axis/services/SAMSvc";<br>
use URI;<br>
my $uri = URI->new("http://$server$endpoint");<br>
my $http = XML::Compile::Transport::SOAPHTTP->new(address => $uri->as_string);<br><br>
my $call = $wsdl->compileClient(operation => 'SAM_CreateWorkItem', transport => $http);<br><br>
There is even no use to describe the next steps (where I would actually use $call) because at the 'compileClient' I get the following error:<br>
error: message CreateWorkItemRequest does not have a part named wsdlns:SAMSoapAuthInfo<br>
...<br><br>
-> what's wrong with these steps?<br>
The operation 'SAM_CreateWorkItem' is defined in the WSDL inside the 'portType'<br><br>
<portType name="SAM_PortType"><br>
<operation name="SAM_CreateWorkItem"><br>
<input message="wsdlns:CreateWorkItemRequest" /><br>
<output message="wsdlns:CreateWorkItemResponse" /><br>
<fault message="wsdlns:SAM_CreateWorkItemFault" name="SAM_CreateWorkItemFault" /><br>
</operation><br>
...<br>
</portType><br><br>
but also inside the 'binding':<br><br>
<binding name="SAMBinding" type="wsdlns:SAM_PortType"><br>
...<br>
<operation name="SAM_CreateWorkItem" ><br>
<soap:operation style="rpc" soapAction="SAM_CreateWorkItem" /><br>
<input> ... </input><br>
<output> ... </output><br>
<fault name="SAM_CreateWorkItemFault"> ...</fault> <br>
</operation><br>
...<br>
</binding><br><br>
Can't I use the XML::Compile::WSDL11 module for this 'style="rpc"' operation ? The documentation of WSDL11 module is not clear on this.<br><br>
Rob</p></body></html>