p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   Web Service to accept HTTP-Get (http://p2p.wrox.com/showthread.php?t=30255)

jasonfisher June 9th, 2005 02:13 AM

Web Service to accept HTTP-Get
 
Hi:
Newbie question to Web service. I'm planning a web project to allow customer to send a URL request (thur application) to access my website to retrieve his/her order status. Something like:

http://mywebsite/order/inquiry?custid=1&orderid=1

Probably the most modern way that I'm thinking of is using Web Service but I'm stuck with how the web service page can accept & read the above parameter.

Could anyone give me a direction with some sample codes? Much appreciated.

planoie June 9th, 2005 09:31 AM

Is the customer a computer? Or is the customer a human? Web services should be used when the consumer is a digital entity.

That point aside, when you construct a web service that accepts simple types, such as integers like you have, the web service can support being hit with the GET method. The web method will automatically pull the values from the querystring for you. You just need to write the web method on the service.

-Peter


All times are GMT -4. The time now is 08:34 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.