gabrielgv
09-11-2006, 04:34 PM
Hi:
I have programmed a web service Called "Cobranza.asmx" that I store on a remote server and it works on the browser.
I have also created the consumer class with wsdl.exe and vbc.exe (Cobranza.dll) that is on the local server in the bin folder of my asp.net.
When I try to run the asp.net that calls the web service I get an error
Compiler Error Message: BC30002: Type 'Cobranza' is not defined.
This is the code of "Cobranza.asmx"
<%@ WebService Language="VB" Class="Cobranza"%>
Imports System.Web.Services
<WebService(Namespace:="DigitalSnd.ServiciosWeb")> _
Public Class Cobranza
<WebMethod()> Public Function Hola(Palabra as String) as String
Hola=Palabra & Palabra
End Function
End Class
This is the code of my asp.net
<%@ Page Language="VB"%>
<script runat="server">
Public Sub Page_Load(sender As [Object], E As EventArgs)
Dim laCobranza As new Cobranza() '''this is the line where I get the error
End Sub 'Page_Load
</script>
<html>
<head>
<title>Documento sin título</title>
</head>
<body>
</body>
</html>
How Can I add a reference to "Cobranza.dll" or "DigitalSnd.ServiciosWeb" ?
I tried this at the first of my asp.net
<%@ Import Namespace = "DigitalSnd.ServiciosWeb" %>
but did not work
What I need to do?
Thanks!!
I have programmed a web service Called "Cobranza.asmx" that I store on a remote server and it works on the browser.
I have also created the consumer class with wsdl.exe and vbc.exe (Cobranza.dll) that is on the local server in the bin folder of my asp.net.
When I try to run the asp.net that calls the web service I get an error
Compiler Error Message: BC30002: Type 'Cobranza' is not defined.
This is the code of "Cobranza.asmx"
<%@ WebService Language="VB" Class="Cobranza"%>
Imports System.Web.Services
<WebService(Namespace:="DigitalSnd.ServiciosWeb")> _
Public Class Cobranza
<WebMethod()> Public Function Hola(Palabra as String) as String
Hola=Palabra & Palabra
End Function
End Class
This is the code of my asp.net
<%@ Page Language="VB"%>
<script runat="server">
Public Sub Page_Load(sender As [Object], E As EventArgs)
Dim laCobranza As new Cobranza() '''this is the line where I get the error
End Sub 'Page_Load
</script>
<html>
<head>
<title>Documento sin título</title>
</head>
<body>
</body>
</html>
How Can I add a reference to "Cobranza.dll" or "DigitalSnd.ServiciosWeb" ?
I tried this at the first of my asp.net
<%@ Import Namespace = "DigitalSnd.ServiciosWeb" %>
but did not work
What I need to do?
Thanks!!