Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Consume a web service in VB.NET
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Consume a web service in VB.NET
Divers
Thread ID:
00745917
Message ID:
00745917
Vues:
69
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,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform