Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
Description
According to section 3.6.2.2 of the jaxws spec, a method like:
@WebMethod(operationName = "SubmitNamespacedPO")
@WebResult(targetNamespace = "http://namespace/result", name = "SubmitBareResponse")
SubmitBareResponse submitNamespacedPO(@WebParam(targetNamespace = "http://namespace/request")
SubmitBareRequest poRequest);
with
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubmitBareRequest", namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/", propOrder =
)
@XmlRootElement(namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/", name = "SubmitPO")
public class SubmitBareRequest
Should result in messages like:
<wsdl:message name="SubmitNamespacedPO">
<wsdl:part element="ns1:SubmitNamespacedPO" name="SubmitNamespacedPO"/>
</wsdl:message>
<wsdl:message name="SubmitNamespacedPOResponse">
<wsdl:part element="ns2:SubmitNamespacedPOResponse" name="SubmitNamespacedPOResponse"/>
</wsdl:message>
Instead, we are using the XMLRootElement qnamed element and generating:
<wsdl:message name="SubmitNamespacedPO">
<wsdl:part element="ns1:SubmitPO" name="SubmitNamespacedPO">
</wsdl:part>
</wsdl:message>