Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Web service using tcp/UDP  RSS feed

 
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
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web services generally use HTTP, and for good reasons. Why TCP/UDP?
 
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!
 
Author and all-around good cowpoke
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
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!