Question invoking a web services example code

markthien

Member
Joined
Nov 9, 2008
Messages
8
Programming Experience
5-10
Hi guys,

I am a vb.net novice. I try to google to find how to invoke a web service example code but no luck. What I found is like configure thru vb.net like the following URL :

DevGuru Tutorial - Using Web Services with VB.NET

anyone can tell me where to get example coding to invoke a web services? for example, if I want to invoke the following web service:

http://ws.cdyne.com/ProfanityWS/Profanity.asmx?wsdl

can someone provide me or tell me where to get complete example code for this? Thanks in advance !

regards,
Mark
 
Add the service reference and explore the namespace and classes. Sample code:
VB.NET:
Dim serv As New WindowsApplication1.PropanityServiceReference.ProfanitySoapClient("ProfanitySoap")
MsgBox(serv.SimpleProfanityFilter("cr@p").CleanText)
 
Back
Top