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

Incorrect namespace configuration when generating wsdl from Aegis databinding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.2
    • None
    • None
    • Using CXF 2.0.1

    Description

      Following is an example service and its generated wsdl:

      import com.basistech.stuff.Name;

      @WebService(name="NameService", targetNamespace="urn:com.basistech.service")
      public interface NameService {
      @WebMethod
      public abstract List<Name> listAvailableNames();
      }

      <wsdl:definitions name="NameService" targetNamespace="http://nameService.basistech.com" xmlns:ns1="http://nameService.basistech.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://stuff.basistech.com">
      <complexType name="ArrayOfName">
      <sequence>
      <element maxOccurs="unbounded" minOccurs="0" name="Name" nillable="true" type="ns1:Name"/>
      </sequence>
      </complexType>
      <complexType name="Name">
      <sequence>
      <element minOccurs="0" name="data" nillable="true" type="string"/>
      <element minOccurs="0" name="uid" nillable="true" type="string"/>
      </sequence>
      </complexType>
      </schema>

      ArrayOfName is said to contain an element of type ns1:Name. However, ns1 is set to "http://nameService.basistech.com" when Name is actually located in the "http://stuff.basistech.com" namespace.

      Attachments

        1. 959-patches
          10 kB
          Benson Margulies
        2. cxf-959.jar
          5 kB
          Benson Margulies
        3. cxf-959.patch
          0.8 kB
          Benson Margulies
        4. name-service.jar
          3 kB
          Brian Sawyer

        Activity

          People

            dkulp Daniel Kulp
            bsawyer Brian Sawyer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: