Using Web Services in VB.NET

I am testing web services in .NET for the first time. I am almost there, but it seems I can not use the web service. I know that this post looks like about 5-6 other posts on this site, but I looked through them and still can’t get the syntax correctly.

So far I have had: -Create a simple web service that creates a directory -Worked in the development environment, but worked a little to work on a real server -I can pull out the "automatic" .NET page that we serve. -Added a link to a web service - now you can see the link in my solution browser and in intellisense.

Update: Here is the link to the web service: http://67.78.188.50/Jservices/Service1.asmx

The web service accepts the string (directory name eg / test /). However, when I enter the name of the web link (ServiceReference1), I do not get the expected methods ...

Here are my parameters with the ServiceReference1 object ...

ServiceReference1.makeDirRequest
ServiceReference1.makeDirRequestBody
ServiceReference1.makeDirResponse
ServiceReference1.makeDirResponseBody
ServiceReference1.Service1Soap
ServiceReference1.Service1SoapChannel
ServiceReference1.Service1SoapClient
+5
source share
4 answers

Pass, you did not post enough code to find out what you did

I would highly recommend that your use of WCF

Given that your samples are confirmed, you need

Dim service As New ServiceReference1.Service1SoapClient
service.makeDir("some val")

Download one of the many samples on the Internet (many on codeproject ) and get the sample first. If you can’t get away, then something else is wrong with your Windows installation.

+8
source

, makeDirRequest - , . (, "service" "client", , , " -" ..), WebService.

.


, , , - (WCF/3.0), - (2.0). 3.0/3.5, -, "..." = > " -" ( " " ). ( WebReference - , ):

Using client As WebReference.Service1 = New WebReference.Service1
    Dim foo As String = "foo"
    client.makeDir(foo)
End Using

- WCF, "" ( ServiceReference1 - , ):

Using client As ServiceReference1.Service1SoapClient = New ServiceReference1.Service1SoapClient
    Dim foo As String = "foo"
    client.makeDir(foo)
End Using

, .

+4

- .NET.

http://articles.techrepublic.com/5100-10878_11-5768122.html

Creation and use of web services - OS, software and networks using ...

http://www.extremetech.com/article2/0,2845,11511,00.asp

Using Web Services from a Win Forms Application - CodeProject

http://www.codeproject.com/KB/webservices/cpwebserviceconsumer.aspx

+2
source

See How to use the web service and see if it helps you. An example is given in C #, but you should easily translate it.

+1
source

All Articles