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 How to send XML request over TCP/IP to WAS?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to send XML request over TCP/IP to WAS??" Watch "How to send XML request over TCP/IP to WAS??" New topic
Author

How to send XML request over TCP/IP to WAS??

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
I have an application sitting on a different box which sends encrypted XML requests over TCP/IP using socket progeaming and not over http or SOAP.
My application is hosted on Websphere application server on a different box.
How do i receive these encrypted XML based requests.
Does Websphere supports TCP/IP based listeners?
How do i go about this??
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
This is a really, really bad idea. It might be possible (and could be if you start your own listerner from something like a Servlet's init() method) but this will involve (at the least) thread management, which is strongly discouraged. You need to instead change your application to use a supported protocol like TCP/IP. The only other option is to put a "translator" program between WebSphere and the other program that listens for TCP on one end and transforms it to HTTP on the other.
But seriously, strongly consider moving the other program to using Web Services.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Kyle,thanks for the response.
In our case the other application who is sending us the request is a 3rd party vendor and is not implementing web services and WILL send request over TCP/IP only.
In that case the only option left is to write a standalone customized java class which listens to the request from that application through scket programing over TCP/IP and sends them to Websphere after converting them to Http.
Am i correct???
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
That would be your best bet, yes.
Kyle
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Is there any utility which can be plugged in WAS and which listens to TCP/IP request and converts them to http???
 
Consider Paul's rocket mass heater.
 
subject: How to send XML request over TCP/IP to WAS??
 
Similar Threads
Sample Questions for 288 - Need answers
Sending request over TCP/IP to Websphere(URGENT)
Sending request over TCP/IP to Websphere(URGENT)
HTTPS Request and Response Streams
HTTPS over SSL/TLS