-
Mar 27th, 2008, 10:13 AM
#1
Passing Certs to WebServiceTemplate
Hi,
I need to contact a https url and fetch a response from it using webserviceTemplate.How do i pass the client side certificate because if i dont provide the cert i wont be able to contact the https site and fetch the response
-
Mar 28th, 2008, 12:17 PM
#2
I'm certainly not an expert, but since you want HTTPS security used, that means it has nothing to do with SOAP, only with its trasport protocol, namely HTTP(S). You achieve it the same way you would establish any kind of HTTPS communication - by configuring your HTTP client used.
In case of Spring-WS lirbary, that means investigating "messageSender" property of your WebServceiTemplate class, and if you use org.springframework.ws.transport.http.CommonsHttpM essageSender, then you set your own HttpClient instance inside it which should be preconfigured to work with HTTPS with client cert. Take a look at Commons HttpClient site for info. AFAIR, you shloud have some AuthSSLProtocolSocketFactory found in some contrib library there.
Cheers!
-
Apr 8th, 2008, 03:36 AM
#3
Resolving AuthSSLProtocolSocketFactory
The only way I've found to get access to this class is to get the source from Apache's repository. There was someone that posted a jar in a Maven repository, but it was unclear what their versioning meant.
Have you found the "contrib" packages in more finished form?
ts
-
Apr 9th, 2008, 09:08 AM
#4
Nope.
I also downloaded the source. It's not problem as far as I remember.. It was only few files.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules