Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web service using tcp/UDP

 
divya anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im developing my own web service registry, a service provider and clients (a windows and an android client). Could anyone tell me if its possible for a web service to use

tcp/udp for communication, or is there any other protocol that i can use to achieve this.


Thanks,
Divyaa
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web services generally use HTTP, and for good reasons. Why TCP/UDP?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have at least heard about SOAP over TCP using the Metro web service stack.
Here is a page that compares different options in this area: http://blogs.sun.com/oleksiys/entry/soap_tcp_makes_web_services
Best wishes!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UDP - sarcastically called the Unreliable Datagram Protocol does not do error checking like TCP does so it is either one or the other.

UDP is used for games where dropping a packet or two does not kill the client. Right off hand I cant think of a web service use for UDP.

Bill
 
divya anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your comments.

Cheers,
Divyaa
 
Jim Akmer
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Web services use only TCP.
I.e. the communication among web services is via HTTP protocol. This is an application protocol that assumes (per RFC mandate) a reliable transport protocol. This can only be TCP since UDP is not reliable.
 
Did you just should on me? You should read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!