Cristi_E
asked on
Debug ASP.NET Web Service in VB.NET
Hello!
I'm using Visual Studio.NET 2003, and i need to debug an ASP.NET Web Service consumed from a VB.NET application.
To simplify things, i've wrote a VB.NET application that adds two numbers (see the attached code). To do that my application consumes a web service. I've created an ASP.NET Web Service project under the same solution as my application (see the attached code). If i need to debug that service, haw can i do that? If i put breakpoints in service code it has no effect (they are skipped).
Can you help me? Thank you!
I'm using Visual Studio.NET 2003, and i need to debug an ASP.NET Web Service consumed from a VB.NET application.
To simplify things, i've wrote a VB.NET application that adds two numbers (see the attached code). To do that my application consumes a web service. I've created an ASP.NET Web Service project under the same solution as my application (see the attached code). If i need to debug that service, haw can i do that? If i put breakpoints in service code it has no effect (they are skipped).
Can you help me? Thank you!
'APPLICATION
Imports System.Web.Services
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'web reference pt. IIS - http://localhost/AddThis/Service1.asmx
Dim a As New localhost.Service1
Dim x As Int16
Dim y As Int16
'
x = CInt(TextBox1.Text)
y = CInt(TextBox2.Text)
'
MsgBox(a.AddThese(x, y))
MsgBox("OK!")
End Sub
End Class
'WEB SERVICE
Imports System.Web.Services
<System.Web.Services.WebService(Namespace := "http://tempuri.org/AddThis/Service1")> _
Public Class Service1
Inherits System.Web.Services.WebService
Public c As Int16
<WebMethod()> _
Public Function AddThese(ByVal a As Int16, ByVal b As Int16) As Int16
c = a + b
Return c
End Function
End Class
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim a As New localhost.Service1
to
Dim a As New Service1