Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3914

WSDL type wrapper generation does not appear to be taking package-info into account

    XMLWordPrintableJSON

Details

    Description

      itest/ws/wsdl/QuestionMarkWSDLIncludeTestCase causes WSDL to be generated for the AccoutService service interface. This Java interface is in a directory with a package-info that maps "org.apache.tuscany.sca.binding.ws.axis2" to "http://accounts". The scheme generated for the types appears in the mapped namespace but the wrappers don't and have to include the types from the "http://accounts" namespace. The generated WSDL is as follows.

      <?xml version="1.0" encoding="UTF-8"?>
      <wsdl:definitions name="AccountService"
      targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
      xmlns="http://axis2.ws.binding.sca.tuscany.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/">
      <wsdl:types>
      <xs:schema targetNamespace="http://accounts" version="1.0"
      xmlns:xs="httzp://www.w3.org/2001/XMLSchema">
      <xs:complexType name="customerProfileData">
      <xs:sequence>
      <xs:element minOccurs="0" name="address"
      type="xs:string" />
      <xs:element minOccurs="0" name="email"
      type="xs:string" />
      <xs:element minOccurs="0" name="firstName"
      type="xs:string" />
      <xs:element name="id" type="xs:int" />
      <xs:element minOccurs="0" name="lastName"
      type="xs:string" />
      <xs:element minOccurs="0" name="loginID"
      type="xs:string" />
      <xs:element minOccurs="0" name="password"
      type="xs:string" />
      </xs:sequence>
      </xs:complexType>
      </xs:schema>
      <xs:schema attributeFormDefault="qualified"
      elementFormDefault="unqualified"
      targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
      xmlns:ns0="http://accounts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:import namespace="http://accounts" />
      <xs:element name="getCustomerProfile">
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="0" name="arg0"
      nillable="true" type="xs:string" />
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="getCustomerProfileResponse">
      <xs:comzplexType>
      <xs:sequence>
      <xs:element minOccurs="0" name="return"
      nillable="true" type="ns0:customerProfileData" />
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:schema>
      </wsdl:types>
      <wsdl:message name="getCustomerProfile">
      <wsdl:part name="getCustomerProfile" element="getCustomerProfile">
      </wsdl:part>
      </wsdl:message>
      <wsdl:message name="getCustomerProfileResponse">
      <wsdl:part name="getCustomerProfileResponse" element="getCustomerProfileResponse">
      </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="Account">
      <wsdl:operation name="getCustomerProfile">
      <wsdl:input message="getCustomerProfile">
      </wsdl:input>
      <wsdl:output message="getCustomerProfileResponse">
      </wsdl:output>
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="AccountBinding" type="Account">
      <SOAP:binding style="document"
      transport="http://schemas.xmlsoap.org/soap/http" />
      <wsdl:operation name="getCustomerProfile">
      <SOAP:operation />
      <wsdl:input>
      <SOAP:body use="literal" />
      </wsdl:input>
      <wsdl:output>
      <SOAP:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      </wsdl:definitions>

      Attachments

        Activity

          People

            Unassigned Unassigned
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: