cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Nelson" <mike...@gmail.com>
Subject request/response wrapper with wsdl2java
Date Sat, 01 Mar 2008 13:21:11 GMT
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
    );

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message