Well bad request usually means the payload is not what is expected. Why don't you simply copy the payload that generates that error and compare it to one which does not and see what the difference is? That should give you a hint.
On Tue, Jun 7, 2016 at 12:36 PM, mabahma [via Camel] < [email protected]> wrote: > Ok > many thanks..It's working > But now i get 400 bad request response : > > ------------------------------------------------------------------------------- > > org.apache.cxf.transport.http.HTTPException: HTTP response '400: Bad > Request' when communicating with http://localhost:9080/WS/calculator > > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1600) > > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1607) > > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1168) > > at > org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > > ----------------------------------------------------------------------------------------- > > > > > I've tried many things (setting encoding..etc) but still getting this 400 > bad request.. > > Is there any tools to diagnose the problem..? > > I'm using Wireshark but i can se everything is normal, the request is > correct and when i copy past it in Soap Ui it s working > > > I've also created a java client by generating the stubs from the wsdl and > it s also working.. > > Why it giving 400 bad request when requested using camel-cxf?? > > Kind regards > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/Camel-CXF-Payload-mode-tp5783530p5783544.html > To start a new topic under Camel - Users, email > [email protected] > To unsubscribe from Camel - Users, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Payload-mode-tp5783530p5783545.html Sent from the Camel - Users mailing list archive at Nabble.com.
