C
cj
I'm finally back to trying to write a web service. In VB 2005 I created
a new web site and then ASP.NET Web Service. It opened showing
App_Code/Service.VB with the following code already in it
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Service
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
This is a fine starting point. How do I test this? We have a web
server here but I need some steps to compile and put it on the web
server. I've only written windows apps so far. I can write a test
program to use the web service.
Also in my investigation of web services I thought this code was
supposed to be in service.asmx. The only thing in service.asmx is
<%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb"
Class="Service" %>
What's up with that?
a new web site and then ASP.NET Web Service. It opened showing
App_Code/Service.VB with the following code already in it
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Service
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
This is a fine starting point. How do I test this? We have a web
server here but I need some steps to compile and put it on the web
server. I've only written windows apps so far. I can write a test
program to use the web service.
Also in my investigation of web services I thought this code was
supposed to be in service.asmx. The only thing in service.asmx is
<%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb"
Class="Service" %>
What's up with that?