Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-943

Doc/Lit/Bare creating wrong element names in wsdl

    XMLWordPrintableJSON

Details

    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 =

      { "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>

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: