This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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.
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
ScroogeXHTML 8.2 - easy to use RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!