camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjelwood <mjelw...@gmail.com>
Subject Re: XML file posting to Rest Service example
Date Thu, 24 May 2012 12:55:59 GMT
I changed the route up slightly:

<route>
      <from uri="file:\\localhost\FTPLand"/>
      *<convertBodyTo type="String"/>*
      <setHeader headerName="CamelHttpMethod">
            <constant>POST</constant>
      </setHeader>
      <to uri="cxfrs:http://localhost/s/restservice?httpClientAPI=true"
pattern="InOut"/>
      <to uri="log:response"/>
    </route>

Exception received:

org.apache.camel.component.cxf.CxfOperationException: JAXRS operation failed
invoking file://\\localhost\FTPLand\ with statusCode: 307, redirectLocation:
http://localhost/s/restservice/

--
View this message in context: http://camel.465427.n5.nabble.com/XML-file-posting-to-Rest-Service-example-tp5713353p5713491.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message