File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Connecting from JAVA to WCF web service through HTTPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Connecting from JAVA to WCF web service through HTTPS" Watch "Connecting from JAVA to WCF web service through HTTPS" New topic
Author

Connecting from JAVA to WCF web service through HTTPS

Sohayb Hassoun
Greenhorn

Joined: Aug 09, 2010
Posts: 3
hello all,
i am basically a .Net developer, but i am now assigned to a project that uses JAVA, in this project i should use a web service (.Net WCF web service) that is secured (over HTTPS),
and the service is signed with a self signed certificate. i almost tried everything mentioned on the web but nothing actually worked.
So if someone have the answer, i would appreciate it.

Thank you
Sohayb
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
HTTPS communication is independent of which platform both client and server run on. What sort of problem are you facing? In other words, what have you tried, and how did it not work?
Sohayb Hassoun
Greenhorn

Joined: Aug 09, 2010
Posts: 3
well i tried JAX-WS to generate the client stubs to call, and apache axis2 for the same reason. both of them failed because of the certificate security exception (self-signed) and gave me an SSL exception. and i tried SOAPUI to generate the SOAP message to use when calling the service, in http case it worked like charm and i got the right answers when calling the service's functions, but when using https, the service replies with http error message 415 : UNKNOWN MEDIA TYPE
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
Welcome to JavaRanch
Sohayb Hassoun
Greenhorn

Joined: Aug 09, 2010
Posts: 3
thank you, i hope i can solve my problems here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting from JAVA to WCF web service through HTTPS
 
Similar Threads
Java Client Consuming .NET WCF
WCF compare to JWS
Glassfish & Metro
Access .NET WCF service from Java
Consuming secure web-services (Axis2 + Rampart)