You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jainmcs03 <to...@gmail.com> on 2015/05/08 17:28:13 UTC

Transformation PAYLOAD request

Team,

Trying to unmarshal payload to bean object and didnt find any error flow
works good.
How to process that request data for transformation. Below the route and log
details.Just want to see the data after unmarshal.

2015-05-08 18:20:10,575 [tp1447874094-18] DEBUG StaxConverter                 
- Created Woodstox XMLInputFactory:
com.ctc.wstx.stax.WstxInputFactory@37dbbe73

      <route streamCache="true">
      <from uri="cxf:bean:canonicalService?dataFormat=PAYLOAD"/>
      <unmarshal>
      	<jaxb prettyPrint="true"
contextPath="localhost._8080.canonicalcxfserviceproxy.canonical"/>
      </unmarshal>
      </route>    

Regards,
Jayendran.



--
View this message in context: http://camel.465427.n5.nabble.com/Transformation-PAYLOAD-request-tp5766884.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transformation PAYLOAD request

Posted by jainmcs03 <to...@gmail.com>.
I managed to get the value. Thanks,

Inside ReqTransformationProcessor : InquiryRequestType :
localhost._8080.canonicalcxfserviceproxy.canonical.InquiryRequestType@5ec7baab
Inside ReqTransformationProcessor : RequestBodyType :
localhost._8080.canonicalcxfserviceproxy.canonical.RequestBodyType@ab0612a
Inside ReqTransformationProcessor : MemberInfo :
localhost._8080.canonicalcxfserviceproxy.canonical.MemberInfo@41bb11e1
Inside ReqTransformationProcessor : memInfo.getFullName( : LAKSHMI



--
View this message in context: http://camel.465427.n5.nabble.com/Transformation-PAYLOAD-request-tp5766884p5766951.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transformation PAYLOAD request

Posted by jainmcs03 <to...@gmail.com>.
Below is the actual route.

<bean id="processor"
class="com.canonical.cxf.service.proxy.ReqTransformationProcessor"/>
..
..
      <route streamCache="true">
      <from uri="cxf:bean:canonicalService?dataFormat=PAYLOAD"/>
      <wireTap
uri="file:/home/analyzer/Desktop/input/?fileName=request.xml"/>
      <unmarshal>
      	<jaxb prettyPrint="true"
contextPath="localhost._8080.canonicalcxfserviceproxy.canonical"/>
      </unmarshal>
      <process ref="processor"/>
      <to uri="log:input"/> 
      </route>    

 For Ex. How to get
MemberInfo(localhost._8080.canonicalcxfserviceproxy.canonical.MemberInfo) in
ReqTransformationProcessor class. 

Regards
Jayendran 




--
View this message in context: http://camel.465427.n5.nabble.com/Transformation-PAYLOAD-request-tp5766884p5766950.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transformation PAYLOAD request

Posted by jainmcs03 <to...@gmail.com>.
Thanks, Claus.

Actually im trying canonical service proxy so after the unmarshall need to
get the request value from been object and set it into different object for
transformation. For that any example pls share the link. I searched more but
no clue.

Regards
Jayendran





--
View this message in context: http://camel.465427.n5.nabble.com/Transformation-PAYLOAD-request-tp5766884p5766949.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transformation PAYLOAD request

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can enable stream caching and route to a log after the unmarshal,
or use the tracer etc.
http://camel.apache.org/stream-caching.html
http://camel.apache.org/tracer
http://camel.apache.org/log

On Fri, May 8, 2015 at 5:28 PM, jainmcs03 <to...@gmail.com> wrote:
>
> Team,
>
> Trying to unmarshal payload to bean object and didnt find any error flow
> works good.
> How to process that request data for transformation. Below the route and log
> details.Just want to see the data after unmarshal.
>
> 2015-05-08 18:20:10,575 [tp1447874094-18] DEBUG StaxConverter
> - Created Woodstox XMLInputFactory:
> com.ctc.wstx.stax.WstxInputFactory@37dbbe73
>
>       <route streamCache="true">
>       <from uri="cxf:bean:canonicalService?dataFormat=PAYLOAD"/>
>       <unmarshal>
>         <jaxb prettyPrint="true"
> contextPath="localhost._8080.canonicalcxfserviceproxy.canonical"/>
>       </unmarshal>
>       </route>
>
> Regards,
> Jayendran.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Transformation-PAYLOAD-request-tp5766884.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/