Submitting a form from the Server

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi and help!!!
i am building an application that is supposed to do validation(Zip
Code) on the server. The unfortunate thing is I have been told that i
need to use a 3rd party's website to do this validation. This is how
it needs to work:

1.) the user will enter the zipcode in my webform and click submit
posting the information back to my server.

2.) on my server grab the zipcode and supply it to another form to be
posted to the 3rd party's website.

3.) get the nformation returned by the external site and continue
execution on my server.

4) return whether or not the zip is valid.


I know this is exactly the whole point of Microsoft designing web
services, but unfortunately i do not have the luxury of having this
3rd party develop a webservice to perform this task, and the zipcode
information on this site can be changed at any time, thus it is not
static. What approach/ classes/ methods etc. should i use to
accomplish this. I imagine that this should be able to be done as
this is sort of the foundation of webservices. Can somebody steer me
in the right direction here???

Thanks,

Tom
 
Check out the WebRequest classes. You can actually build a form POST
WebRequest that posts to the remote server and gets the response back
without a browser involved.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
One thing I would add to this is to be sure to turn off keepalive if you care about reliability:
webRequest.KeepAlive = False
 
Back
Top