I have a webservice which i need to call in .net application. The link looks like this.
http://www.contoso.com/student?id=12345
This will work only when its called like this. For rest of the this i dont have access. ie if i call it on a browser without the querystring it will not work. but with querystring it will return an XML data.
Now, when i call this in the .net application its not working?
How can I call this in a .NET application?
The Normal Webservice Importing methods are not working since it needs a querystring with value and we dont have access to the links which doesnt have the querystring.
If you need to use a querystring I would not consider it a true web service. Maybe you should use the webclient Download string to get the xml and parse it out.
smilu.net
Member
157 Points
84 Posts
How to call a webservice with Querystring?
Mar 25, 2012 10:21 AM|LINK
I have a webservice which i need to call in .net application. The link looks like this.
http://www.contoso.com/student?id=12345
This will work only when its called like this. For rest of the this i dont have access. ie if i call it on a browser without the querystring it will not work. but with querystring it will return an XML data.
Now, when i call this in the .net application its not working?
How can I call this in a .NET application?
The Normal Webservice Importing methods are not working since it needs a querystring with value and we dont have access to the links which doesnt have the querystring.
Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: How to call a webservice with Querystring?
Mar 25, 2012 10:29 AM|LINK
If you need to use a querystring I would not consider it a true web service. Maybe you should use the webclient Download string to get the xml and parse it out.
Space Coast .Net User Group