[Xml-compile] compileclient complains about missing parts in message
Rob De Langhe
rob.de.langhe at twistfare.be
Fri Mar 21 10:13:30 GMT 2014
hi list,
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
my $wsdl = XML::Compile::WSDL11->new('SAMService.wsdl');
$wsdl->addSchemaDirs($schema_dir);
$wsdl->importDefinitions(@otherSchemasList);
my $server = "10.2.3.4"; # obviously faked for this mail
my $endpoint = "/axis/services/SAMSvc";
use URI;
my $uri = URI->new("http://$server$endpoint");
my $http = XML::Compile::Transport::SOAPHTTP->new(address =>
$uri->as_string);
my $call = $wsdl->compileClient(operation => 'SAM_CreateWorkItem',
transport => $http);
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:
error: message CreateWorkItemRequest does not have a part named
wsdlns:SAMSoapAuthInfo
...
-> what's wrong with these steps?
The operation 'SAM_CreateWorkItem' is defined in the WSDL inside the
'portType'
<portType name="SAM_PortType">
<operation name="SAM_CreateWorkItem">
<input message="wsdlns:CreateWorkItemRequest" />
<output message="wsdlns:CreateWorkItemResponse" />
<fault message="wsdlns:SAM_CreateWorkItemFault"
name="SAM_CreateWorkItemFault" />
</operation>
...
</portType>
but also inside the 'binding':
<binding name="SAMBinding" type="wsdlns:SAM_PortType">
...
<operation name="SAM_CreateWorkItem" >
<soap:operation style="rpc" soapAction="SAM_CreateWorkItem" />
<input> ... </input>
<output> ... </output>
<fault name="SAM_CreateWorkItemFault"> ...</fault>
</operation>
...
</binding>
Can't I use the XML::Compile::WSDL11 module for this 'style="rpc"'
operation ? The documentation of WSDL11 module is not clear on this.
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20140321/2cc93936/attachment.htm>
More information about the Xml-compile
mailing list