D
David Lozzi
Howdy,
Here is my script in file OrderStatus.asmx:
Imports System.Web.Services
<System.Web.Services.WebService(Namespace:="http://tempuri.org")> _
Public Class Service1
Inherits System.Web.Services.WebService
#Region " Web Services Designer Generated Code "
....
#End Region
<WebMethod()> Public Function HelloWorld() As String
Return "Hello World"
End Function
<WebMethod()> Public Function AddThese(ByVal fir As Integer, ByVal sec As Integer) As String
Dim total As Integer = 0
Try
total = fir + sec
Catch ex As Exception
total = -1
Finally
AddThese = "The total is: " & total & "."
End Try
End Function
End Class
So now when try to view it in IE, I enter this as the address: http://localhost/newservice/OrderStatus.asmx
Service1
The following operations are supported. For a formal definition, please review the Service Description
According to the book I'm using (dummies) I should see at least the AddThese function right? What am I missing?
Thanks!!
Here is my script in file OrderStatus.asmx:
Imports System.Web.Services
<System.Web.Services.WebService(Namespace:="http://tempuri.org")> _
Public Class Service1
Inherits System.Web.Services.WebService
#Region " Web Services Designer Generated Code "
....
#End Region
<WebMethod()> Public Function HelloWorld() As String
Return "Hello World"
End Function
<WebMethod()> Public Function AddThese(ByVal fir As Integer, ByVal sec As Integer) As String
Dim total As Integer = 0
Try
total = fir + sec
Catch ex As Exception
total = -1
Finally
AddThese = "The total is: " & total & "."
End Try
End Function
End Class
So now when try to view it in IE, I enter this as the address: http://localhost/newservice/OrderStatus.asmx
Service1
The following operations are supported. For a formal definition, please review the Service Description
According to the book I'm using (dummies) I should see at least the AddThese function right? What am I missing?
Thanks!!