Spring Soap请求不适用于Apache Camel http4组件,为什么?
我在使用带有http4组件的soapweb服务时遇到问题。我有插座插座 以下是我的详细情况Spring Soap请求不适用于Apache Camel http4组件,为什么?,spring,apache,apache-camel,Spring,Apache,Apache Camel,我在使用带有http4组件的soapweb服务时遇到问题。我有插座插座 以下是我的详细情况 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:xsi="http
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<bean id="myNameStrategy" class="org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy">
<constructor-arg value="com.inova_software.vap.webservice.dataservice.definition.DataService"/>
<constructor-arg value="true"/>
</bean>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<camel:template id="camelTemplate"/>
<dataFormats>
<jaxb id="myJaxb" prettyPrint="true"
contextPath="com.inova_software.vap.webservice.dataservice.definition"/>
<soapjaxb id="soapJaxb" contextPath="com.inova_software.vap.webservice.dataservice.definition" elementNameStrategyRef="myNameStrategy"/>
</dataFormats>
<route>
<from uri="direct:start"/>
<marshal ref="soapJaxb"/>
<to uri="https://xx.xx.com/xx-deal-xx/xx-xx/ctx/authbasic/ws/DataService?authMethod=Basic&authUsername=xxxxx&authPassword=xxxxxx&authHost=https://xxxxx.com/xx-deal-xx/xx-xx/ctx/authbasic/ws/DataService"/>
<unmarshal ref="soapJaxb"/>
</route>
</camelContext>
</beans>
我用这个有困难。我得到了以下异常,但如果我使用https,它会工作。
但该项目要求这两个Web服务同时存在
原因:
org.apache.camel.component.http4.HttpOperationFailedException:HTTP
操作调用失败
状态代码:500 at
org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:236)
在
org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:163)
在
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
在
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
在
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
在
org.apache.camel.processor.RedeliveryRorHandler.process(RedeliveryRorHandler.java:416)
在
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
位于org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)位于
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
在
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
在
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
在
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:74)
在
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375)
在
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343)
在
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233)
在
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343)
位于org.apache.camel.impl.ProducerCache.send(ProducerCache.java:201)
在
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:128)
在
org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeaders(DefaultProducerTemplate.java:253)
HTTP状态代码500是服务器端错误,错误发生在Camel之外。检查服务器端哪里出了问题