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/04/28 20:08:46 UTC

webservice proxy using spring

Hi All,

I have successfully tested the web service proxy example using spring. In
order to explore further, need to write incoming document into .xml file.
pls share me any sample or guide.Below the route.

 <route>
      
      <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>
      
      <to uri="log:input"/>
      
      <to uri="bean:enrichBean"/>
      
      <to ref="callRealWebService"/>
      
      <to uri="log:output"/>
    </route>

In that above need to write .xml file to store request data into .xml file.
Pls guide.

Regards
jayendran



--
View this message in context: http://camel.465427.n5.nabble.com/webservice-proxy-using-spring-tp5766439.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: webservice proxy using spring

Posted by jainmcs03 <to...@gmail.com>.
Thanks Francois. 





--
View this message in context: http://camel.465427.n5.nabble.com/webservice-proxy-using-spring-tp5766439p5766471.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: webservice proxy using spring

Posted by jainmcs03 <to...@gmail.com>.
Francois,

I managed to make it works using the option below,thanks,

<route streamCache="true">

Regards
Jayendran



--
View this message in context: http://camel.465427.n5.nabble.com/webservice-proxy-using-spring-tp5766439p5766495.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: webservice proxy using spring

Posted by jainmcs03 <to...@gmail.com>.
Francois,

In this way i got a error on my console. Attaching logs. 

Regards
Jayendran EclipdeIDE_logs.EclipdeIDE_logs
<http://camel.465427.n5.nabble.com/file/n5766472/EclipdeIDE_logs.EclipdeIDE_logs>  



--
View this message in context: http://camel.465427.n5.nabble.com/webservice-proxy-using-spring-tp5766439p5766472.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: webservice proxy using spring

Posted by François LIOT <fr...@poplidays.com>.
First part is optional, but so many time required, that I believe it worth to write it down :

  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <!-- Allows us to use system properties as variables in this configuration file -->
    <property name="locations">
        <list>
            <value>file:/etc/myapp/camel-parameters.properties</value><!-- where camel.working.path is defined -->
        </list>
    </property>
  </bean>
....


   <route>
      <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>
      <wireTap uri="file:{{camel.working.path}}/input"/>
      <to uri="log:input"/>
      <to uri="bean:enrichBean"/>
      <to ref="callRealWebService"/>
      <wireTap uri="file:{{camel.working.path}}/output"/>
      <to uri="log:output"/>
    </route>

Cheers.

Francois.


________________________________________
From: jainmcs03 <to...@gmail.com>
Sent: Tuesday, April 28, 2015 8:08 PM
To: users@camel.apache.org
Subject: webservice proxy using spring

Hi All,

I have successfully tested the web service proxy example using spring. In
order to explore further, need to write incoming document into .xml file.
pls share me any sample or guide.Below the route.

 <route>

      <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>

      <to uri="log:input"/>

      <to uri="bean:enrichBean"/>

      <to ref="callRealWebService"/>

      <to uri="log:output"/>
    </route>

In that above need to write .xml file to store request data into .xml file.
Pls guide.

Regards
jayendran



--
View this message in context: http://camel.465427.n5.nabble.com/webservice-proxy-using-spring-tp5766439.html
Sent from the Camel - Users mailing list archive at Nabble.com.