У меня возникли проблемы с использованием веб-служб SOAP с компонентом http4. Я получаю Socket expcetion.Мыльные запросы не работают с компонентом http4 Apache Camel, почему?
ниже мои детали.
<?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, он работает. , но проект требует, чтобы оба этих веб-сервиса существовали вместе.
Вызванный: org.apache.camel.component.http4.HttpOperationFailedException: HTTP операция не удалась вызова https://xxx.xxxx.com/xxxx-deal-xx/xx-xx/ctx/authbasic/ws/DataService?authMethod=Basic с StatusCode: 500 в 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 .RedeliveryErrorHandler.process (RedeliveryErrorHandler.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.Direc tProducer.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) в орг .apache.camel.impl.ProducerCache.doInProducer (ProducerCache.java:233) по адресу org.apache.camel.impl.ProducerCache.sendExchange (ProducerCache.java:343) at org.apache.camel.impl.ProducerCache. отправить (Prod ucerCache.java:201) на org.apache.camel.impl.DefaultProducerTemplate.send (DefaultProducerTemplate.java:128) на org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeaders (DefaultProducerTemplate.java:253)