2 Replies Latest reply on Feb 6, 2008 12:25 AM by Mathan Kumar Sambasivam

    Method Overloading in JBossWS

    Mathan Kumar Sambasivam Newbie

      Hi,

      I created a WebService with Method Overloading in JBoss. While generating WSDL from Java, I got two operations with same operation name with out any difference. My generated WSDL file contains only one Schema element, one Shema Complex type, and two Operations. Give me a suggesion for generate two operations for my methods.

      My Code Like This

      @WebMethod
      public String getAssignedCrbt(String a)
      {
      ...
      }


      @WebMethod
      public String getAssignedCrbt(String a,String b)
      {
      ...
      }

      For Eg.

      <xs:element name='getAssignedCrbt' type='tns:getAssignedCrbt'/>

      <xs:complexType name='getAssignedCrbt'>
      <xs:sequence>
      <xs:element minOccurs='0' name='arg0' type='xs:string'/>
      </xs:sequence>
      </xs:complexType>


      <message name='Crbt_getAssignedCrbt'>



      <operation name='getAssignedCrbt' parameterOrder='getAssignedCrbt'>






      <operation name='getAssignedCrbt'>
      <soap:operation soapAction=''/>

      <soap:body use='literal'/>


      <soap:body use='literal'/>


      <soap:fault name='ProvisionException' use='literal'/>


      <operation name='getAssignedCrbt'>
      <soap:operation soapAction=''/>

      <soap:body use='literal'/>


      <soap:body use='literal'/>


      <soap:fault name='ProvisionException' use='literal'/>