• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gaurav Jain
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gaurav Jain
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be your best bet, yes.
Kyle
 
Gaurav Jain
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any utility which can be plugged in WAS and which listens to TCP/IP request and converts them to http???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic