This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

soap messages using sockets  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!