win - web forms

  • Thread starter Thread starter grant
  • Start date Start date
G

grant

i have written a windows app to check orders from our website however i need
to send info to a third party (for refund purposes) via a web page , how can
i inject the required data from the winform into a webform, this will also
be required to work from winform to webform as a unique refund id is posted
back

thanks in advance

Garnt
 
Grant,

You will probably need for that the HTTP request/response class, however
than it comes, the way the (webserver) page is used makes how you have to
make your response (to see that, when you see the respond on the commandline
it is Get otherwise it is hopefully for you Post).

I never did what you ask actually so deeper I cannot help you in this
problem.

http://msdn.microsoft.com/library/d...ml/frlrfsystemnethttpwebrequestclasstopic.asp

However I hope this helps something?

Cor
 
Just to clarify Cor's answer a little.

You can use the HTTPWebRequest class to Post a form to the partner site. If
the partner site requires a login, you will first have to post to their
login page with your credentials, capture the cookies, and then post to the
actual form. The HTTPWebResponse is the class that retrieves the response
data, which, in all liklihood will include the HTML containing the refund
id. You will have to parse that id out of the surrounding HTML.

A fairly good article on this is located here:
http://www.codeproject.com/csharp/HttpWebRequest_Response.asp
It is in C#. I hope that is not a problem. Note: you can take his code and
put it into a c# project in your environment, and then call it from your VB
app, if that helps.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top