Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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