Web Get Requests
-
Hi, I'm a bit puzzled here and feel silly asking this question. I know how to open a new URL, read the response back from the web, etc if I initiate the request. Where I'm stuck is how do I do this if I don't initiate the request. Here is what I'm trying to do. A distribution center is going to call my Web Server via a Web Service. I'm supposed to obtain the fields of information they are passing to me via a Web GET request. How is this done? Thank you,
Glenn
-
Hi, I'm a bit puzzled here and feel silly asking this question. I know how to open a new URL, read the response back from the web, etc if I initiate the request. Where I'm stuck is how do I do this if I don't initiate the request. Here is what I'm trying to do. A distribution center is going to call my Web Server via a Web Service. I'm supposed to obtain the fields of information they are passing to me via a Web GET request. How is this done? Thank you,
Glenn
There is a WebRequest object that allows you to make http requests, see this for a specific answer to your question: http://support.microsoft.com/kb/307023[^] Normally, when consuming web-services, the client uses a set proxy class generated from a web service description. This creates intermediary classes for sending the data up and down the wire and proxy classes to handle the consumption of the remote methods. If you are consuming a third party service, it is worth asking the provider how to generate these first as hand-rolling can be a PITA. If you are writing the services yourself, you'll be able to just add the service as a reference. Right click the client project and select "Add service reference" and point it at your definition. Both ASMX (IIRC) and WCF services provide service definitions out the box.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]