Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET, XML, web service question, HTTP GET

Status
Not open for further replies.

jkb17

Programmer
Nov 27, 2000
156
US
hello.

I have an asp.net web application. I believe that I accessing a web service. I do the following:

I have to install and register a COM DLL that will generate a unique login token for me per request. I have added the reference to my application and I can gnereate the TOKEN no problem.

I then dynamically generate the URL which is something like:


The results returned by the above URL is an xml document. How do I execute the above from within VB.NET in ASP.NET application so that I can "catch" the XML document in a dataset.

I have not been able to add a Web Reference directly to this web service.

Any advice?

Thanks in advance

Jim
 
If you are working in Visual Studio .Net, right click the project, and then click Add Web Reference. Give the link to web service, I have don't done it any other way but it must be posible. Once you have created the web reference treat it like an object. Sample code below:

create the service as an object:

localhost.billyBikesService serv = new localhost.billyBikesService();

create dataset:

DataSet brandList = new DataSet();

make dataset equal to method, giving properties if needed:

brandList = serv.getBrandList();

create datagrid on page, the set datasource to dataset

brandDG.DataSource = brandList;

bind the data "IMPORTANT BIT":

brandDG.DataBind();

Regards,


Lewis Harvey
lewis@lharvey.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top