Hi All,
I have the following operation in my wsdl
<wsdl:import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"
location="WS-MetadataExchange-2004_09.wsdl"/>
...
<wsdl:operation name="GetMetadata">
<wsdl:input name="GetMetadataMsg"
message="wsmex-w:GetMetadataMsg"
wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata"/>
<wsdl:output name="GetMetadataResponseMsg"
message="wsmex-w:GetMetadataResponseMsg"
wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataRespons
e"/>
</wsdl:operation>
...
In WS-MetadataExchange-2004_09.wsdl the messages are defined as :
<wsdl:message name="GetMetadataMsg">
<wsdl:part name="body" element="tns:GetMetadata"/>
</wsdl:message>
<wsdl:message name="GetMetadataResponseMsg">
<wsdl:part name="body" element="tns:Metadata"/>
</wsdl:message>
When I run wsdl2java, I get the following error:
java.lang.RuntimeException: [ID = 'NotDocLiteral'] The WSDL operation
'GetMetada
ta' is not doc-literal because it defines a message with more than one
message p
art for its SOAP Body. The SOAP Body of a doc-literal message should
contain one
root request element (with the operation name) with zero or more child
elements
(the parameters).
I have Muse version 2.2.0
Any ideas about what could be the problem ?
Thanks,
M'Jay