This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX-WS sending Document/Literal Bare throws exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS sending Document/Literal Bare throws exception" Watch "JAX-WS sending Document/Literal Bare throws exception" New topic
Author

JAX-WS sending Document/Literal Bare throws exception

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
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 ) ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS sending Document/Literal Bare throws exception
 
Similar Threads
How to generate a correct WSDL for a service with overloaded methods ?
webmethod of Doc/Lit bare style with only one header param generates part="" invalid wsdl soap:body
Simple question about Unwrapped and Wrapped SOAP messages/WSDLs
Packages, Classes, Scope
ClassCastException