• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connecting from JAVA to WCF web service through HTTPS

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch
 
Sohayb Hassoun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you, i hope i can solve my problems here
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic