当我通过SoapUI请求传递Web服务请求时,返回正确的答案。如果程序发送请求(java + spring),则会抛出错误:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
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-3.0.xsd">
<bean id="crRawXmlServiceMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="contextPath" value="ru.fms.sx.adapter.cregistry.rawxml.wsclient" />
</bean>
<bean id="crRawXmlServiceClient" class="ru.fms.sx.adapter.base.sws.SpringWSClientFactory"
factory-method="createClient">
<constructor-arg index="0" type="java.lang.Class"
value="ru.fms.sx.adapter.cregistry.rawxml.wsclient.RegistryUpdatePort" />
<constructor-arg index="1" ref="crRawXmlServiceTemplate" />
</bean>
<bean id="crRawXmlServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory" />
<property name="marshaller" ref="crRawXmlServiceMarshaller" />
<property name="unmarshaller" ref="crRawXmlServiceMarshaller" />
<property name="messageSender">
<bean class="ru.fms.sx.adapter.base.sws.SXMessageSender">
<constructor-arg index="0" value="${http.proxy.host}" />
<constructor-arg index="1" value="${http.proxy.port}" />
<property name="channel" value="SMEV" />
<property name="readTimeout" value="24000000" />
<property name="connectionTimeout" value="24000000"/>
</bean>
</property>
<property name="destinationProvider" ref="destinationProvider" />
<property name="interceptors">
<list>
<ref bean="wsSecHandler" />
<ref bean="soapSigner" />
<ref bean="soapLogger" />
</list>
</property>
</bean>
<bean id="destinationProvider" class="ru.fms.sx.adapter.base.OutgoingServiceDestinationProvider">
<property name="defaultUri" value="${cregistry.rawxml.ws.url}" />
</bean>
网络服务配置:
{{1}}
有谁知道它可能是什么?