hello,
I'm using camel 2.12.1 with https4 to try to send a simple XML, but I keep
getting 400 Bad Request when trying to send... Any suggestions on why is
highly appreciated. The body of the Exchange is just plain String.
[ant:jettyRun] [PROVIDER.Eb] [to1 ]
[https4:ws.acme.com/xml/service ] [
1631]
[ant:jettyRun]
[ant:jettyRun] Exchange
[ant:jettyRun]
---------------------------------------------------------------------------------------------------------------------------------------
[ant:jettyRun] Exchange[
[ant:jettyRun] Id ID-52901-1381866674115-0-1
[ant:jettyRun] ExchangePattern InOnly
[ant:jettyRun] Headers
{breadcrumbId=bfe2c9c1-28ad-41de-a458-09b53ab37528, CamelHttpMethod=POST,
CamelRedelivered=false, CamelRedeliveryCounter=0, Content-Type=text/xml}
[ant:jettyRun] BodyType String
[ant:jettyRun] Body <?xml version="1.0"
encoding="UTF-8"?><ShoppingRequest
xmlns='http://ws.acme.com/schemas/2008/A'>
[ant:jettyRun] <Slices refundableOnly='false'>
[ant:jettyRun] <FooType code='C' />
[ant:jettyRun] <Slice>
[ant:jettyRun] <Arriving>
[ant:jettyRun] <City code='NYC' />
[ant:jettyRun] <Date>2013-10-24</Date>
[ant:jettyRun] </Arriving>
[ant:jettyRun] </Slice>
[ant:jettyRun] </Slices>
[ant:jettyRun] </ShoppingRequest>
[ant:jettyRun] ]
[ant:jettyRun]
[ant:jettyRun] Stacktrace
[ant:jettyRun]
---------------------------------------------------------------------------------------------------------------------------------------
[ant:jettyRun]
org.apache.camel.component.http4.HttpOperationFailedException: HTTP
operation failed invoking https://ws.acme.com:443/xml/service with
statusCode: 400
[ant:jettyRun] at
org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:237)
~[camel-http4-2.12.1.jar:2.12.1]
[ant:jettyRun] at
org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:165)
~[camel-http4-2.12.1.jar:2.12.1]
[ant:jettyRun] at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.12.1.jar:2.12.1]
[ant:jettyRun] at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
~[camel-core-2.12.1.jar:2.12.1]
--
View this message in context:
http://camel.465427.n5.nabble.com/Send-XML-over-HTTPS-tp5741619.html
Sent from the Camel - Users mailing list archive at Nabble.com.