[jboss-user] [JBossWS] - Document/Literal and multiple inputs

tobake do-not-reply at jboss.com
Mon Dec 11 06:36:53 EST 2006


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. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992733#3992733

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992733



More information about the jboss-user mailing list