Doc/Lit/Bare creating wrong element names in wsdl
-------------------------------------------------

                 Key: CXF-943
                 URL: https://issues.apache.org/jira/browse/CXF-943
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime, JAXB Databinding, Tooling
    Affects Versions: 2.0.1
            Reporter: Daniel Kulp
             Fix For: 2.0.2



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 = { 
"product" })
@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>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to