2016-09-23 16:42:15,439 DEBUG uid={4}RMI TCP Connection(14)-10.83.14.125 - httpclient.wire.header:70 - >> "POST /MyProject/hello1 HTTP/1.1[\r][\n]"
我正在尝试编写一个用于读取SOAP Web服务的客户端。我正在使用spring WebServiceTemplate& CommonsHttpMessageSender用于基本身份验证。但得到以下错误 -
"Could not retrieve WSDL for"
是否有人知道如何使用HTTP协议的GET方法发送消息? 提前致谢。
<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="soapMessageFactory"/>
<property name="marshaller" ref="marshaller"/>
<property name="unmarshaller" ref="marshaller"/>
<property name="defaultUri" value="URL"/>
<property name="messageSender">
<bean class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
<property name="credentials">
<bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
<constructor-arg value="username"/>
<constructor-arg value="password"/>
</bean>
</property>
</bean>
</property>
</bean>