0 Replies Latest reply on Apr 28, 2007 9:29 PM by Jaap Taal

    Two services with same portname

    Jaap Taal Newbie

      When I deploy two services with the same method name inside one war file something strange happens:

      @WebService
      @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
      public class EchoListString {
      
       @WebMethod
       public List<String> echo(List<String> myList) {
       return myList;
       }
      
      }
      

      and
      @WebService
      @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
      public class EchoListBean {
      
       @WebMethod
       public List<BasicBean> echo(List<BasicBean> myList) {
       return myList;
       }
      
      }
      


      The echo input xsd (as well as the output) which is generated inside the wsdl is:
      <xs:complexType name="echo">
      <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" type="tns:basicBean" />
      </xs:sequence>
      </xs:complexType>

      the tns:basicBean is used instead of xs:string!

      When I change the name of either EchoListString.echo EchoListBean.echo, everything is normal.

      I think it's a bug, but i'm not sure!