Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Web Get Requests

Web Get Requests

Scheduled Pinned Locked Moved C#
questionsysadminhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gmhanna
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • G gmhanna

      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

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      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[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups