Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Consume a web service in VB.NET
Message
From
27/01/2003 14:42:21
 
 
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00745917
Message ID:
00745930
Views:
114
Here is an example on using vb.net to access google's web service:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchAccessingGooglewithVB.asp


also, a basic 'how to consume a web service in vb.net':

http://www.dotnet4all.com/default.asp?NavID=513

tracy

>How do you consume a web service within a VB.NET windows application? If I have a web service with an operation called "mood" which takes no params and returns the following in a browser.
>
>  <?xml version="1.0" encoding="utf-8" ?>
>  <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d1p1:type="q1:string"
>xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://localhost/zippy">Happy</anyType>
>
>What needs to be done? Is this faux example a pure fantasy?
>
>private function GetMyOp() as string
>    dim foo as webservice = "http://localhost/zippy"
>    if GotINetConnection() then
>        GetMyOp = foo.mood
>    endif
>end function
>
>
>My thanks,
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform