CamelCookbook / camel-cookbook-examples

Example source code for Apache Camel Developer's Cookbook
http://www.packtpub.com/apache-camel-developers-cookbook/book
Apache License 2.0
262 stars 188 forks source link

allowStreaming in ws/proxy/ProxyRouteBuilder #52

Open jkorab opened 9 years ago

jkorab commented 9 years ago
    from(paymentServiceProxyUri + "&dataFormat=PAYLOAD&allowStreaming=false") // here
            .id("wsProxy")
            .errorHandler(defaultErrorHandler().maximumRedeliveries(2))
        .to("log:wsProxyRequest?showAll=true&multiline=true")
        .to(paymentServiceBackendUri + "&dataFormat=PAYLOAD&allowStreaming=false") //here
        .to("log:wsProxyResponse?showAll=true&multiline=true") // was wsProxyRequest
jkorab commented 9 years ago

Similar issue in XML equivalent, camel-cookbook-web-services/ws-camel-routes/..spring/proxy-context.xml:

  <from uri="cxf:bean:paymentServiceProxy?dataFormat=PAYLOAD&amp;allowStreaming=false"/>
  <to uri="log:wsProxyRequest?showAll=true&amp;multiline=true"/>
  <to uri="cxf:bean:paymentServiceBackend?dataFormat=PAYLOAD&amp;allowStreaming=false"/>