S
serge
Hello,
I have created a web service that will return SQL Server's Northwind
productid quantity.
If i access my web service from the Internet, i type the following:
http://www.mydomainnametest.com/northwind2/inventory.asmx
then i click on one of the web services there, for example GetInventory
http://www.mydomainnametest.com/northwind2/inventory.asmx?op=GetInventory
i get a text field where i enter the ProductID, press a command button and i
get the quantity of that ProductID.
Now, if i type the following at the address link :
http://www.mydomainnametest.com/northwind2/inventory.asmx?op=GetInventory?ProductID=2
i get the result also.
Now, my problem is I don't know how i can call this web service using an ASP
page. My goal is to use
another website to send a parameter to this web service and get the result
back, display the result on the html page for
the user and also insert the value in a SQL Server table.
Can someone please help me out? I need a sample code on how to write ASP
code to pass a value to a web
service residing on another server, get the result and display it on the
HTML page.
I would appreciate any help.
Thank you
I have created a web service that will return SQL Server's Northwind
productid quantity.
If i access my web service from the Internet, i type the following:
http://www.mydomainnametest.com/northwind2/inventory.asmx
then i click on one of the web services there, for example GetInventory
http://www.mydomainnametest.com/northwind2/inventory.asmx?op=GetInventory
i get a text field where i enter the ProductID, press a command button and i
get the quantity of that ProductID.
Now, if i type the following at the address link :
http://www.mydomainnametest.com/northwind2/inventory.asmx?op=GetInventory?ProductID=2
i get the result also.
Now, my problem is I don't know how i can call this web service using an ASP
page. My goal is to use
another website to send a parameter to this web service and get the result
back, display the result on the html page for
the user and also insert the value in a SQL Server table.
Can someone please help me out? I need a sample code on how to write ASP
code to pass a value to a web
service residing on another server, get the result and display it on the
HTML page.
I would appreciate any help.
Thank you