That's a limitation that Sun's JAX-WS implementation has imposed. It's based on a constraint defined in the WS-I Basic Profile which requires unique wire signatures based on the QName of the child element of the SOAP Body. Axis2 does not impose that limitation because it supports additional dispatch mechanisms (e.g., via the Action parameter). If you desire to support multi-platform interoperability, you should adhere to the WS-I Basic Profile constraints.
Anne On Thu, Mar 6, 2008 at 5:22 PM, sgopal <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to generated stubs using wsimport for the following wsdl and it > generates an error that says > > [ERROR] Non unique body parts! In a port, operations must have unique > operation signaure on the wire for successful dispatch. In port > VersionWebServiceSOAP11port_http, Operations "getWebServiceVersion" and > "getBrokerVersion" have the same request body block > > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:ns0="http://version.webservices.trusted.mp.subsystems.bp.bn.ebsdr.com" > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:ns1="http://org.apache.axis2/xsd" > xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > targetNamespace="http://version.webservices.trusted.mp.subsystems.bp.bn.ebsdr.com"> > <wsdl:documentation>VersionWebService</wsdl:documentation> > <wsdl:types> > <xs:schema > xmlns:ns="http://version.webservices.trusted.mp.subsystems.bp.bn.ebsdr.com" > attributeFormDefault="qualified" elementFormDefault="qualified" > > targetNamespace="http://version.webservices.trusted.mp.subsystems.bp.bn.ebsdr.com"> > <xs:element name="getBrokerVersionResponse"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="return" > nillable="true" type="xs:string"/> > </xs:sequence> > </xs:complexType> > </xs:element> > <xs:element name="getWebServiceVersionResponse"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="return" > nillable="true" type="xs:int"/> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:schema> > </wsdl:types> > <wsdl:message name="getBrokerVersionRequest"/> > <wsdl:message name="getBrokerVersionResponse"> > <wsdl:part name="parameters" > element="ns0:getBrokerVersionResponse"/> > </wsdl:message> > <wsdl:message name="getWebServiceVersionRequest"/> > <wsdl:message name="getWebServiceVersionResponse"> > <wsdl:part name="parameters" > element="ns0:getWebServiceVersionResponse"/> > </wsdl:message> > <wsdl:portType name="VersionWebServicePortType"> > <wsdl:operation name="getBrokerVersion"> > <wsdl:input message="ns0:getBrokerVersionRequest" > wsaw:Action="urn:getBrokerVersion"/> > <wsdl:output message="ns0:getBrokerVersionResponse" > wsaw:Action="urn:getBrokerVersionResponse"/> > </wsdl:operation> > <wsdl:operation name="getWebServiceVersion"> > <wsdl:input message="ns0:getWebServiceVersionRequest" > wsaw:Action="urn:getWebServiceVersion"/> > <wsdl:output message="ns0:getWebServiceVersionResponse" > wsaw:Action="urn:getWebServiceVersionResponse"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="VersionWebServiceSOAP11Binding" > type="ns0:VersionWebServicePortType"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > <wsdl:operation name="getBrokerVersion"> > <soap:operation soapAction="urn:getBrokerVersion" > style="document"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="getWebServiceVersion"> > <soap:operation soapAction="urn:getWebServiceVersion" > 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="VersionWebServiceSOAP12Binding" > type="ns0:VersionWebServicePortType"> > <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > <wsdl:operation name="getBrokerVersion"> > <soap12:operation soapAction="urn:getBrokerVersion" > style="document"/> > <wsdl:input> > <soap12:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap12:body use="literal"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="getWebServiceVersion"> > <soap12:operation soapAction="urn:getWebServiceVersion" > style="document"/> > <wsdl:input> > <soap12:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap12:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding name="VersionWebServiceHttpBinding" > type="ns0:VersionWebServicePortType"> > <http:binding verb="POST"/> > <wsdl:operation name="getBrokerVersion"> > <http:operation location="VersionWebService/getBrokerVersion"/> > <wsdl:input> > <mime:content type="text/xml" part="getBrokerVersion"/> > </wsdl:input> > <wsdl:output> > <mime:content type="text/xml" part="getBrokerVersion"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="getWebServiceVersion"> > <http:operation > location="VersionWebService/getWebServiceVersion"/> > <wsdl:input> > <mime:content type="text/xml" part="getWebServiceVersion"/> > </wsdl:input> > <wsdl:output> > <mime:content type="text/xml" part="getWebServiceVersion"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="VersionWebService"> > <wsdl:port name="VersionWebServiceSOAP11port_http" > binding="ns0:VersionWebServiceSOAP11Binding"> > <soap:address > location="http://10.1.1.151:10130/axis2/services/VersionWebService"/> > </wsdl:port> > <wsdl:port name="VersionWebServiceSOAP12port_http" > binding="ns0:VersionWebServiceSOAP12Binding"> > <soap12:address > location="http://10.1.1.151:10130/axis2/services/VersionWebService"/> > </wsdl:port> > <wsdl:port name="VersionWebServiceHttpport" > binding="ns0:VersionWebServiceHttpBinding"> > <http:address > location="http://10.1.1.151:10130/axis2/services/VersionWebService"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > > Thanks > Srinivasan > -- > View this message in context: > http://www.nabble.com/Problem-Using-wsimport-to-generate-jax-ws-stubs-tp15884324p15884324.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
