Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS sending Document/Literal Bare throws exception  RSS feed

 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the following code deployed as Webservice :

@WebService
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class CreditCardValidation {

@WebMethod(operationName="validate")
public boolean validateCreditCard(CreditCard card,String name) throws CreditCardException {
......
......
}
}


The server while startup throws error that multiple parameters not supported while using BARE . I dont want to change my Webservice to WRAPPED. So is it possible to support multiple parameters by other way (other than wrapping the input parameters by my custom object ) ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!