Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

soap messages using sockets

 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How to transfer a soap message between web service client and server using java socket programming ?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you write both the client and the server you can just turn your soap message into XML and send it as a single string or a bunch of lines. If you use a server from some other source your client will have to send exactly what the server expects, and that's a bit hard to predict from here. It may be better to use some of the HTTP-aware classes instead of socket in the client.

What's your comfort level with sockets? Have you done much with them? If not, Sun's All About Sockets is a good starting point.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic