3 Replies Latest reply on Dec 13, 2006 10:21 AM by thomas.diesler

    Document/Literal and multiple inputs

    tobake

      Hi!

      I trying to get this dummyMethod to work with document/literal


      public class Test {
      
      @WebService(name="testWS", serviceName="TestService")
      @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
       use=SOAPBinding.Use.LITERAL,
       parameterStyle = SOAPBinding.ParameterStyle.BARE)
      
      @WebMethod
       public String dummyService(String input, String input2) {
       log.debug("dummyService was called");
       return "Okey I am here";
       }
      }
      
      



      This did work when I only had one input parameter. But when testing with multiple inputs I get the following error when trying to deploy to jboss.

      12:17:44,644 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp14496icr3.ear-contents/icr3.war
      org.jboss.ws.WSException: Attempt to map multiple operation inputs to: {http://webservice.icr3.com/jaws}dummyService



      I have tried parameterStyle.WRAPPED and then it deploys but in that case it is giving me strange result when I try to consume the service with my .NET consumer application. I simply dont get the right input parameters in my proxy.

      instead of looking like this :
      proxy.dummyService(String input1, String input2)




      it shows this :

      proxy.dummyService(tester.jbossws.dummyService dummyService1)





      Help is appriciated.