XmlHttpRequest from a Windows Application ?

D

dave

I want to design/develop an windows application that can query multiple
websites (XmlHttpRequest), call number of 3rd party external
webservices (SOAP) and parse/process the data and display it to the
user.


Ideally this would have been developed as a website, but due to crosss
doman limitation on XmlHttpRequest, I am thinking of developing it as
an windows application.

Since I am basically new to developing visual studio applications, I
want to know what is the easiest/best of doing it.

1. from some initial searching, one of the solutions I found is to
build an browser based application (application: with the browser
control). If so can I still use XmlHttpRequest ? and would the
cross-domain limitation with XmlHttpRequest apply here and in any way
prevent me from querying multiple sites ?

2. Is there any other way of doing this.


thanks in advance
Dave.
 
J

Joerg Jooss

Thus wrote Dave,
I want to design/develop an windows application that can query
multiple websites (XmlHttpRequest), call number of 3rd party external
webservices (SOAP) and parse/process the data and display it to the
user.

Ideally this would have been developed as a website, but due to crosss
doman limitation on XmlHttpRequest, I am thinking of developing it as
an windows application.

Since I am basically new to developing visual studio applications, I
want to know what is the easiest/best of doing it.

1. from some initial searching, one of the solutions I found is to
build an browser based application (application: with the browser
control). If so can I still use XmlHttpRequest ? and would the
cross-domain limitation with XmlHttpRequest apply here and in any way
prevent me from querying multiple sites ?

2. Is there any other way of doing this.

You should avoid XMLHTTPRequest. You can easily create Web Service proxies
in Visal Studio by adding a Web Reference.

If you cannot use this feature (e.g. there's no WSDL or XSD to use), you
could use System.Net.HttpWebRequest/Response and System.Xml classes to write
the required HTTP communication and XML processing yourself (ouch!).

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top