New to WebServices.... but this should work, no?

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!!
 
R

Raymond Yuen

Hi David Lozzi,

Have you compile the project before using IE to browse the asmx file?

Raymond
 
D

David Lozzi

Are there other environmental variables that come into play here? Anything
in web.config I should worry about?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top