Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / May 2006

Tip: Looking for answers? Try searching our database.

Error 500 on oXmlHTTP.Send

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RG - 30 Apr 2006 14:05 GMT
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
RG - 01 May 2006 04:10 GMT
I figured out the problem.  The parameter name on the service didn't match
that on xmlhttp.send.  Specifically, the second parameter.
>I have an aspx web pages which interacts with an asmx service.  The calls
>to
[quoted text clipped - 27 lines]
>
> Thanks in advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.