<!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-&gt;new('SAMService.wsdl');<br>
$wsdl-&gt;addSchemaDirs($schema_dir);<br>
$wsdl-&gt;importDefinitions(@otherSchemasList);<br><br>
my $server = "10.2.3.4";&nbsp;&nbsp;&nbsp;&nbsp; # obviously faked for this mail<br>
my $endpoint = "/axis/services/SAMSvc";<br>
use URI;<br>
my $uri = URI-&gt;new("http://$server$endpoint");<br>
my $http = XML::Compile::Transport::SOAPHTTP-&gt;new(address =&gt; $uri-&gt;as_string);<br><br>
my $call = $wsdl-&gt;compileClient(operation =&gt; 'SAM_CreateWorkItem', transport =&gt; $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>
-&gt; what's wrong with these steps?<br>
The operation 'SAM_CreateWorkItem' is defined in the WSDL inside the 'portType'<br><br>
&lt;portType name="SAM_PortType"&gt;<br>
&lt;operation name="SAM_CreateWorkItem"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;input message="wsdlns:CreateWorkItemRequest" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;output message="wsdlns:CreateWorkItemResponse" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;fault message="wsdlns:SAM_CreateWorkItemFault" name="SAM_CreateWorkItemFault"&nbsp; /&gt;<br>
&lt;/operation&gt;<br>
...<br>
&lt;/portType&gt;<br><br>
but also inside the 'binding':<br><br>
&lt;binding&nbsp; name="SAMBinding"&nbsp; type="wsdlns:SAM_PortType"&gt;<br>
...<br>
&lt;operation name="SAM_CreateWorkItem" &gt;<br>
&nbsp;&nbsp; &lt;soap:operation style="rpc" soapAction="SAM_CreateWorkItem" /&gt;<br>
&nbsp;&nbsp; &lt;input&gt;&nbsp;&nbsp;&nbsp;&nbsp; ...&nbsp; &lt;/input&gt;<br>
&nbsp;&nbsp; &lt;output&gt;&nbsp;&nbsp; ... &nbsp; &lt;/output&gt;<br>
&nbsp;&nbsp; &lt;fault name="SAM_CreateWorkItemFault"&gt;&nbsp; ...&lt;/fault&gt;&nbsp;<br>
&lt;/operation&gt;<br>
...<br>
&lt;/binding&gt;<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>