J
Jaime Stuardo
Hi all....
I have a web service method that when I call, I get the error:
The request failed with HTTP status 404: Not Found.
Line 58:
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://cursoaspnet1.com/webservices/ValidaUsuario",
RequestNamespace:="http://cursoaspnet1.com/webservices/",
ResponseNamespace:="http://cursoaspnet1.com/webservices/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>
_
Line 59: Public Function ValidaUsuario(ByVal usuario As String,
ByVal pass As String, ByRef osigno As String) As Integer
Line 60: Dim results() As Object = Me.Invoke("ValidaUsuario",
New Object() {usuario, pass, osigno})
Line 61: osigno = CType(results(1),String)
Line 62: Return CType(results(0),Integer)
The line with the Invoke call is colored in red.
This is the webmethod definition for that function:
[WebMethod]
public int ValidaUsuario(string usuario, string pass, ref string osigno)
{
...
}
And this is the call:
Dim oWs As Alcahuet.AlcahuetNet = New Alcahuet.AlcahuetNet
Dim iAcceso = oWs.ValidaUsuario(strUsr, strPass, resigno)
I have added the web reference with the name of Alcahuet and when I connect
to http://localhost/AlcahuetNet/Alcahuetnet.asmx I get a list of methods.
Any help to solve this will be greatly appreciated
Thanks
Jaime
I have a web service method that when I call, I get the error:
The request failed with HTTP status 404: Not Found.
Line 58:
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://cursoaspnet1.com/webservices/ValidaUsuario",
RequestNamespace:="http://cursoaspnet1.com/webservices/",
ResponseNamespace:="http://cursoaspnet1.com/webservices/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>
_
Line 59: Public Function ValidaUsuario(ByVal usuario As String,
ByVal pass As String, ByRef osigno As String) As Integer
Line 60: Dim results() As Object = Me.Invoke("ValidaUsuario",
New Object() {usuario, pass, osigno})
Line 61: osigno = CType(results(1),String)
Line 62: Return CType(results(0),Integer)
The line with the Invoke call is colored in red.
This is the webmethod definition for that function:
[WebMethod]
public int ValidaUsuario(string usuario, string pass, ref string osigno)
{
...
}
And this is the call:
Dim oWs As Alcahuet.AlcahuetNet = New Alcahuet.AlcahuetNet
Dim iAcceso = oWs.ValidaUsuario(strUsr, strPass, resigno)
I have added the web reference with the name of Alcahuet and when I connect
to http://localhost/AlcahuetNet/Alcahuetnet.asmx I get a list of methods.
Any help to solve this will be greatly appreciated
Thanks
Jaime