Announcement Announcement Module
No announcement yet.
Spring WST acessing SSL portected SOAP service with Get request Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring WST acessing SSL portected SOAP service with Get request

    I'm trying to use Spring WebServiceTemplate to access a SOAP webservice. The service is protected by SSL so i've been trying to modify the template configuration to use a custom HttpClient configuration.

    <bean id="exchangeWST" class="">
    		<constructor-arg ref="Marshaller" />
    		<property name="messageFactory" ref="messageFactory" />
    		<property name="messageSender" ref="fullAccessHttpClientMessageSender"/>
    		<property name="defaultUri" value="https://exchangeserver/EWS/Exchange.asmx" />
    	<bean id="fullAccessHttpClientMessageSender"
    		<constructor-arg type="org.apache.http.impl.client.DefaultHttpClient">
    			<ref bean="httpClient" />
    	<bean id="httpClient" class="mypackage.HTTPClientFactory"
    The problem occurs because CommonsHttpMessageSender expects org.apache.commons.httpclient.HttpClient however im passing in org.apache.http.impl.client.DefaultHttpClient although it does extend AbstractHttpClient which implements org.apache.http.client.HttpClient. When i start up the application it gives me a "Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)" error,

    Does Spring WST have other senders which offer more support for connecting to SSL SOAP service and sending GET requests or do i need to extend the CommonsHttpMessageSendder?