Error 500 on oXmlHTTP.Send - Javascript

This is a discussion on Error 500 on oXmlHTTP.Send - Javascript ; I have an aspx web pages which interacts with an asmx service. The calls to web service are done via Javascript. The asmx service method has the following parameters: public string RetrieveContact(string Id, int EntityTypeCode) I am getting the following ...

+ Reply to Thread
Results 1 to 2 of 2

Error 500 on oXmlHTTP.Send

  1. Default Error 500 on oXmlHTTP.Send

    I have an aspx web pages which interacts with an asmx service. The calls to
    web service are done via Javascript.

    The asmx service method has the following parameters:

    public string RetrieveContact(string Id, int EntityTypeCode)


    I am getting the following error when executing
    oXmlHTTP.Send("id=" + sId + "&ObjectTypeCode=" + sObjectTypeCode);

    which resolves into

    oXmlHTTP.Send("id=7AA4FB86-24D6-DA11-B240-000F20F62526&ObjectTypeCode=1");



    responseText "System.InvalidOperationException: Missing parameter:
    EntityTypeCode.
    at
    System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection
    collection)
    at System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest
    request)
    at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()
    at System.Web.Services.Protocols.WebServiceHandler.Invoke()
    at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
    " String

    Would anyone know how to resolve this.

    Thanks in advance





  2. Default Re: Error 500 on oXmlHTTP.Send

    I figured out the problem. The parameter name on the service didn't match
    that on xmlhttp.send. Specifically, the second parameter.
    "RG" <nobody@nowhere.com> wrote in message
    news:uOoiyaFbGHA.3376@TK2MSFTNGP05.phx.gbl...
    >I have an aspx web pages which interacts with an asmx service. The calls
    >to
    > web service are done via Javascript.
    >
    > The asmx service method has the following parameters:
    >
    > public string RetrieveContact(string Id, int EntityTypeCode)
    >
    >
    > I am getting the following error when executing
    > oXmlHTTP.Send("id=" + sId + "&ObjectTypeCode=" + sObjectTypeCode);
    >
    > which resolves into
    >
    > oXmlHTTP.Send("id=7AA4FB86-24D6-DA11-B240-000F20F62526&ObjectTypeCode=1");
    >
    >
    >
    > responseText "System.InvalidOperationException: Missing parameter:
    > EntityTypeCode.
    > at
    > System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection
    > collection)
    > at
    > System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest
    > request)
    > at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()
    > at System.Web.Services.Protocols.WebServiceHandler.Invoke()
    > at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
    > " String
    >
    > Would anyone know how to resolve this.
    >
    > Thanks in advance
    >
    >
    >
    >




+ Reply to Thread

Similar Threads

  1. send mail error
    By Application Development in forum PHP
    Replies: 2
    Last Post: 11-16-2007, 07:30 AM
  2. Can't Send Mail: Error 553
    By Application Development in forum Pine
    Replies: 4
    Last Post: 07-07-2005, 06:18 PM
  3. help! send permission error
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 06-01-2004, 08:32 PM
  4. error 503 5.5.2 send hello first
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 11-18-2003, 09:00 AM
  5. Re: You do not have permission to send ... #5.7.1 Error
    By Application Development in forum Microsoft Exchange
    Replies: 0
    Last Post: 09-11-2003, 05:58 AM