View Single Post
  #2 (permalink)  
Old September 8th, 2003, 09:23 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It sounds like the form is posting directly to their system. As you'll never be able to get control of the return XML. What you'll need to do is have the form post to your server, then you need to construct your own web request as a form post that your server will make to their server. Then your server will receive the response and process the returning XML as needed.

Look into the System.Net.HttpWebRequest class. I have only used this a little, but with it you should be able to construct a complete web request, building the form elements that you received from the user's form post, point it to their page, and a class method will return the response stream to you so you can grab the XML. It's going to turn your server into the browser from the viewpoint of your vendor's site.

Good luck,
Peter
Reply With Quote