Provider is normally the painful way of creating web services, best avoided by letting the wsdl2java tools create methods and parameters for your web service operations[1]. But if you have to use Provider, you'll normally be manually parsing XML elements and then reconstructing a response. The sample you have linked to shows the bulk of it. Some enhancements/simplifications: my JAX-WS Handler tutorial [2]'s LogicalHandler.java shows how you can read in the SOAP request into a class (DoubleIt) so you can just call its methods to get values, and ClientHandler.LogicalHandler says how you can change/create the data object (DoubleIt again) and then set that as a SOAP request/response. I would also google for more Provider examples on the 'Net.

Glen

[1] http://www.jroller.com/gmazza/entry/web_service_tutorial
[2] http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial


On 02/07/2012 03:32 PM, fachhoch wrote:
I saw this example from samples



I need more help here,
I need to understand how can I retrieve parameters from the request
DomSource
once I get the parameters I create my Object which could be person or
employee or something else
this object I want to to add to the response .
Please advice me .


--
View this message in context: 
http://cxf.547215.n5.nabble.com/webservice-with-changing-response-tp5456293p5464473.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to