File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Encrypting a SOAP message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Encrypting a SOAP message" Watch "Encrypting a SOAP message" New topic
Author

Encrypting a SOAP message

Andrew Braithwaite
Greenhorn

Joined: Nov 16, 2005
Posts: 1
I have written the code below to send a soap message built from a file to a webservice. It does exactly what I want, but I need to encrypt the message using TLS. Can anybody give me any pointers on how to go about doing this?


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You can send it over HTTPS instead of HTTP, which would use SSL or TLS.

If you want to specifically encode it, you would normally use WS-Security, for which an implementation is available at http://ws.apache.org/wss4j/. I'm not sure if it supports TLS, though.
[ November 16, 2005: Message edited by: Ulf Dittmer ]

Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encrypting a SOAP message
 
Similar Threads
Webservice Help!
Output as null
Need to send Signed SOAP Message
SoapConnection timeout
How to convert a StreamResult to a String?