Re: Not Found" error when calling a web method

Tech-Archive recommends: Speed Up your PC by fixing your registry



Can u invoke the web method call from IE but not from ur VB code? If yes
then it may be the problem with ur proxy settings. It may help u...
http://www.dotnet247.com/247reference/msgs/2/12659.aspx

Regards,
Deepak

"Jaime Stuardo" <jstuardo@xxxxxxxxxxxxx> wrote in message
news:%23nskiJtyFHA.1856@xxxxxxxxxxxxxxxxxxxxxxx
> there you are
>
> <?xml version="1.0" encoding="utf-8" ?>
> - <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:s="http://www.w3.org/2001/XMLSchema";
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:tns="http://cursoaspnet1.com/webservices/";
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> targetNamespace="http://cursoaspnet1.com/webservices/";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
> - <wsdl:types>
> - <s:schema elementFormDefault="qualified"
> targetNamespace="http://cursoaspnet1.com/webservices/";>
> <s:import namespace="http://www.w3.org/2001/XMLSchema"; />
> - <s:element name="BuscarPareja">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="query" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> - <s:element name="BuscarParejaResponse">
> - <s:complexType>
> - <s:sequence>
> - <s:element minOccurs="0" maxOccurs="1" name="BuscarParejaResult">
> - <s:complexType>
> - <s:sequence>
> <s:element ref="s:schema" />
> <s:any />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> - <s:element name="ValidaUsuario">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="usuario" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="pass" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="osigno" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> - <s:element name="ValidaUsuarioResponse">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="1" maxOccurs="1" name="ValidaUsuarioResult"
> type="s:int" />
> <s:element minOccurs="0" maxOccurs="1" name="osigno" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:schema>
> </wsdl:types>
> - <wsdl:message name="BuscarParejaSoapIn">
> <wsdl:part name="parameters" element="tns:BuscarPareja" />
> </wsdl:message>
> - <wsdl:message name="BuscarParejaSoapOut">
> <wsdl:part name="parameters" element="tns:BuscarParejaResponse" />
> </wsdl:message>
> - <wsdl:message name="ValidaUsuarioSoapIn">
> <wsdl:part name="parameters" element="tns:ValidaUsuario" />
> </wsdl:message>
> - <wsdl:message name="ValidaUsuarioSoapOut">
> <wsdl:part name="parameters" element="tns:ValidaUsuarioResponse" />
> </wsdl:message>
> - <wsdl:portType name="AlcahuetNetSoap">
> - <wsdl:operation name="BuscarPareja">
> <wsdl:input message="tns:BuscarParejaSoapIn" />
> <wsdl:output message="tns:BuscarParejaSoapOut" />
> </wsdl:operation>
> - <wsdl:operation name="ValidaUsuario">
> <wsdl:input message="tns:ValidaUsuarioSoapIn" />
> <wsdl:output message="tns:ValidaUsuarioSoapOut" />
> </wsdl:operation>
> </wsdl:portType>
> - <wsdl:binding name="AlcahuetNetSoap" type="tns:AlcahuetNetSoap">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
> style="document" />
> - <wsdl:operation name="BuscarPareja">
> <soap:operation
> soapAction="http://cursoaspnet1.com/webservices/BuscarPareja";
> style="document" />
> - <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> - <wsdl:operation name="ValidaUsuario">
> <soap:operation
> soapAction="http://cursoaspnet1.com/webservices/ValidaUsuario";
> style="document" />
> - <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> - <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:service name="AlcahuetNet">
> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"; />
> - <wsdl:port name="AlcahuetNetSoap" binding="tns:AlcahuetNetSoap">
> <soap:address location="http://localhost/AlcahuetNet/AlcahuetNet.asmx"; />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
>
> "B Deepak" <deepak_badki@xxxxxxxxxxxxxxxx> wrote in message
> news:OwiSptmyFHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
>> Can u plse provide me the WSDL file for the webservice u r calling?
>>
>> -Deepak
>> "Jaime Stuardo" <jstuardo@xxxxxxxxxxxxx> wrote in message
>> news:uSGF5cmyFHA.3864@xxxxxxxxxxxxxxxxxxxxxxx
>>> But with VB.NET I cannot use ref keyword to call a ByRef parameter. That
>>> is only for C#
>>>
>>> Jaime
>>>
>>> "B Deepak" <deepak_badki@xxxxxxxxxxxxxxxx> wrote in message
>>> news:OV5tN5jyFHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Use...
>>>>
>>>> Dim iAcceso = oWs.ValidaUsuario(strUsr, strPass, ref resigno)
>>>>
>>>> It may solve ur problem.
>>>>
>>>> "Jaime Stuardo" <jstuardo@xxxxxxxxxxxxx> wrote in message
>>>> news:OHw94s2xFHA.3312@xxxxxxxxxxxxxxxxxxxxxxx
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • RE: Strange error validating XML against XSD
    ... I think they may be sending you a null terminated string. ... > value that this parameter will actually have is the content of a XML ... > This web method is invoked by some guys outside my organization and they are ... But when these guys invoke the method, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Strange error validating XML against XSD
    ... > value that this parameter will actually have is the content of a XML ... > This web method is invoked by some guys outside my organization and they are ... But when these guys invoke the method, ... > XmlSchema xsDocXSD = new XmlSchema; ...
    (microsoft.public.dotnet.xml)
  • just an idea
    ... I am having one web method with is executing one stored procedure. ... So want i want is once client has invoke this method asynchronosuly, ... But my question is will be create any resource leaks or memory leaks if ... client has closed before web request completed. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: No return from async web service call
    ... Therefore UploadHandler ... continual while loop. ... > I'm trying to invoke a web method asynchronously but just can't seem to get ...
    (microsoft.public.dotnet.framework.webservices)