【发布时间】:2014-07-02 19:09:27
【问题描述】:
这是我第一次与Web Services 打交道。我已经成功 Added a Web Service 到我在 VS 2010 中创建的一个。我想要做的是访问这个 .asmx file 中添加的 Web 服务的功能这是我现在看到的以及所有自动添加的代码.
Service1.asmx.vb
Public Class Service1
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
我添加的已添加 Web 服务名为 blahService。所以我很好奇如何访问添加的 Web 服务中的功能?我必须做这样的事情吗...?
Dim foo as new blahService()
然后当我去访问一个功能时就做
foo.function()
【问题讨论】:
标签: visual-studio-2010 web-services