Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-16 Thread helander
I have now changed my client to be a JaxWS Proxy and this works fine, however the cxf client proxy injects XML messages into the route (sends to the camel context over a cxf bus). Can I somehow have the client send it as POJOs instead, so that I can process the POJOs in the route before sending the

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-06 Thread helander
Willem, thanks for the clarification. Lars -- View this message in context: http://camel.465427.n5.nabble.com/Producing-consuming-SOAP-messages-to-from-POJOs-using-camel-cxf-tp5724949p5725028.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-06 Thread Willem jiang
If you want to send the message smartly, you can do the work like this form("direct:logical").to("cxf:bean:clientEndpoint"); from("direct:physical").to("……") You can specify the clientEndpoint Address to be "camel://direct:physical", then the second camel route can route the request dynamically

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-06 Thread helander
Do you mean something like this: from("cxf:bean:nameofendpointbean").to(.. What address do I put on the endpoint bean ? What adress do I specify in the cxf client ? Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/Producing-consuming-SOAP-messages-to-f

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-06 Thread Willem jiang
CXF transport just handle the message as Stream, if you want to use POJO data format s the camel-cxf does. You can configure the cxfEndpoint to use the camel transport. Then you may need to define two camel route , one is for the logical view(marshaling and unmarshaling the SOAP message), the o

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-06 Thread helander
Hi Willem, that helped a lot. I am now getting the request message to the route that receives the request from the cxf client. It is of type java.IO.InputStream, how do I make it into a structure where I can read the xml elements, i.e. similar to PAYLOAD format? Can I convert it back to POJO (not

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread Willem jiang
Here is some unit tests[1][2][3] those you can take a look. You just need to make sure the CamelTransportFactory which you get from CXF Bus is injected with right camel context. [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf-transport/src/test/java/org/apache/camel/component

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread Willem jiang
Hi Lars, Current you have to use Spring to configure the camel transport for the CXF client, if you want to do it with pure Java you have to manage the CXF Bus yourself. I will try to write an example to show you how to do it with pure Java, when I get some time later today. -- Willem Jiang

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread helander
Thanks, do you know where I can find an example how to do this that are in pure Java (no Spring) ? Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/Producing-consuming-SOAP-messages-to-from-POJOs-using-camel-cxf-tp5724949p5724967.html Sent from the Camel - Users

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread Willem jiang
It looks like you just need to route the soap message to different service location dynamically. I think you can try out the camel transport for CXF[1] [1]http://camel.apache.org/camel-transport-for-cxf.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fus

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread helander
The general pattern is: Application -> Java service interface -> SOAP client -> Routing { dynamically determine address and transport method, attach transport specific headers } -> Send to (dynamically selected service location) ... and I would like to do this using Java (i.e. no Spring) Thank

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-05 Thread Willem jiang
I'm not sure what kind of processing you are doing, but if you can setup right message header (operation name) and message body, you should have no trouble to invoke the service. Maybe you can show us, you want prepare the SOAP message for invocation. -- Willem Jiang Red Hat, Inc. FuseSource