For non-trivial methods, WSDL2Java forces me to deal with request/response
wrapper classes in the client code it generates (see the 1st method as
compared to the 2nd method). Is there a way to prevent this?
Thanks,
-mike
Examples:
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebResult(name = "getCustomerResponse", targetNamespace = "
http://customer.acme.com", partName = "parameters")
@WebMethod
public com.acme.customer.GetCustomerResponse getCustomer(
@WebParam(partName = "parameters", name = "getCustomer",
targetNamespace = "http://customer.acme.com")
GetCustomer parameters
) throws CustomerNotFoundFault;
@RequestWrapper(localName = "deleteCustomer2", targetNamespace = "
http://customer.acme.com", className = "com.acme.customer.DeleteCustomer2")
@ResponseWrapper(localName = "deleteCustomer2Response", targetNamespace
= "http://customer.acme.com", className = "
com.acme.customer.DeleteCustomer2Response")
@WebMethod
public void deleteCustomer2(
@WebParam(name = "id", targetNamespace = "http://customer.acme.com")
long id
);