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

Split WSDL files in the same namespace casues problems for ws binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Java-SCA-2.0
    • Java-SCA-2.0
    • SCA Java Runtime
    • None
    • All

    Description

      I have the following scenario:

      <wsdl:definitions targetNamespace="http://serialize"
      xmlns:tns="http://serialize"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      name="serialize-top">

      <wsdl:import namespace="http://serialize" location="wsdl-serialize-nested.wsdl" />

      <wsdl:binding name="AccountSoapBinding" type="nested:Account">
      ...

      <wsdl:definitions targetNamespace="http://serialize"
      xmlns:tns="http://serialize"
      xmlns:account="http://accounts"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      name="questionmark-import-nested">

      <wsdl:types>
      ...

      <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
      xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
      targetNamespace="http://www.tuscany.apache.org/tests/binding/ws/axis2"
      name="WSDLSerialize">

      <component name="AccountService">
      <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.AccountService"/>
      <service name="Account">
      <binding.ws uri="http://localhost:8085/services/AccountService"
      wsdlElement="http://serialize#wsdl.binding(AccountSoapBinding)"/>
      </service>
      </component>

      </composite>

      This causes the ws binding to fail with an NPE in Axis when it's trying to find the AccountSoapBinding binding. I'm guessing that having both WSDL documents in the same namespace is causing confusion somewhere.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: