Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3447

CLONE -Error in generated WSDL file - wsaw namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.1
    • None
    • codegen
    • None
    • Windows XP

    Description

      The declaration of the namespace "wsaw" is included in the
      <wsdl:input> element, but it is missing in the <wsdl:output>
      element. Adding the namespace manually to the <wsdl:output>
      element solves this issue, but it remains a workaround and
      probably a bug that should be solved in Axis.

      Generated: <wsdl:output message="tns:sendResponse"
      wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
      </wsdl:output>

      Manually modified: <wsdl:output message="tns:sendResponse"
      xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
      wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
      </wsdl:output>

      Regards.

      Original WSDL used as input for WSDL2Java:
      <definitions xmlns:tns="http://be.belgium.fsb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
      <types>
      <s:schema xmlns:tns="http://be.belgium.fsb" xmlns:err="http://fsb.belgium.be/fourthway/v1/error" xmlns:s="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
      <s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="./XSD/Error.xsd"/>
      <s:element name="send">
      <s:complexType>
      <s:sequence>
      <s:element ref="err:ErrorRequest">
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
      <s:element name="sendResponse">
      <s:complexType>
      <s:sequence>
      <s:element ref="err:ErrorResponse">
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </types>
      <message name="send">
      <part name="parameters" element="tns:send"/>
      </message>
      <message name="sendResponse">
      <part name="parameters" element="tns:sendResponse"/>
      </message>
      <portType name="ErrorInterfaceSoap">
      <operation name="send">
      <input message="tns:send"/>
      <output message="tns:sendResponse"/>
      </operation>
      </portType>
      <binding name="ErrorInterfaceSoap" type="tns:ErrorInterfaceSoap">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="send">
      <soap:operation style="document"/>
      <input>
      <soap:body use="literal" namespace="http://be.belgium.fsb"/>
      </input>
      <output>
      <soap:body use="literal" namespace="http://be.belgium.fsb"/>
      </output>
      </operation>
      </binding>
      <service name="ErrorInterface">
      <port name="ErrorInterfaceSoap" binding="tns:ErrorInterfaceSoap">
      <soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
      </port>
      </service>
      </definitions>

      Generated WSDL:
      <wsdl:definitions xmlns:tns="http://be.belgium.fsb" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
      <wsdl:types>
      <s:schema xmlns:err="http://fsb.belgium.be/fourthway/v1/error" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
      <s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="xsd0.xsd"/>
      <s:element name="send">
      <s:complexType>
      <s:sequence>
      <s:element ref="err:ErrorRequest"/>
      </s:sequence>
      </s:complexType>
      </s:element>
      <s:element name="sendResponse">
      <s:complexType>
      <s:sequence>
      <s:element ref="err:ErrorResponse"/>
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </wsdl:types>
      <wsdl:message name="send">
      <wsdl:part name="part1" element="tns:send"/>
      </wsdl:message>
      <wsdl:message name="sendResponse">
      <wsdl:part name="part1" element="tns:sendResponse"/>
      </wsdl:message>
      <wsdl:portType name="ErrorInterfacePortType">
      <wsdl:operation name="send">
      <wsdl:input message="tns:send" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest"/>
      <wsdl:output message="tns:sendResponse" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse"/>
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="ErrorInterfaceSOAP11Binding" type="tns:ErrorInterfacePortType">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="send">
      <soap:operation soapAction="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest" style="document"/>
      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:binding name="ErrorInterfaceSOAP12Binding" type="tns:ErrorInterfacePortType">
      <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
      <wsdl:operation name="send">
      <wsdl:input>
      <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
      <soap12:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="ErrorInterface">
      <wsdl:port name="ErrorInterfaceSOAP11port_http" binding="tns:ErrorInterfaceSOAP11Binding">
      <soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
      </wsdl:port>
      <wsdl:port name="ErrorInterfaceSOAP12port_http" binding="tns:ErrorInterfaceSOAP12Binding">
      <soap12::address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

      Attachments

        Issue Links

          Activity

            People

              deepal Deepal Jayasinghe
              mgainty Martin Gainty
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: