473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error 500 on oXmlHTTP.Send

RG
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.ValueCollectionParam eterReader.Read(NameValueCollection
collection)
at System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
request)
at System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
" String

Would anyone know how to resolve this.

Thanks in advance


Apr 30 '06 #1
5 2461
Why are you using legacy COM MSXMLXX objects to do this when you can simply
create a webReference for your ASPX page to use and make a typical .NET
WebService proxy call?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
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.ValueCollectionParam eterReader.Read(NameValueCollection
collection)
at System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
request)
at System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
" String

Would anyone know how to resolve this.

Thanks in advance


Apr 30 '06 #2
RG
Thanks for your help. I am customizing Microsoft CRM 3.0. So, the aspx
code is off limits. However, I could customize an onChange event for a
field. There, is where I am trying to access service I had written.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:78**********************************@microsof t.com...
Why are you using legacy COM MSXMLXX objects to do this when you can
simply
create a webReference for your ASPX page to use and make a typical .NET
WebService proxy call?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
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.ValueCollectionParam eterReader.Read(NameValueCollection
collection)
at
System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
request)
at System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at
System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
" String

Would anyone know how to resolve this.

Thanks in advance


Apr 30 '06 #3
You could try using the WebService HTC behavior.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
Thanks for your help. I am customizing Microsoft CRM 3.0. So, the aspx
code is off limits. However, I could customize an onChange event for a
field. There, is where I am trying to access service I had written.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:78**********************************@microsof t.com...
Why are you using legacy COM MSXMLXX objects to do this when you can
simply
create a webReference for your ASPX page to use and make a typical .NET
WebService proxy call?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
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.ValueCollectionParam eterReader.Read(NameValueCollection
collection)
at
System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
request)
at System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at
System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
" String

Would anyone know how to resolve this.

Thanks in advance



Apr 30 '06 #4
RG
Is there a documentation on this?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:3E**********************************@microsof t.com...
You could try using the WebService HTC behavior.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
Thanks for your help. I am customizing Microsoft CRM 3.0. So, the aspx
code is off limits. However, I could customize an onChange event for a
field. There, is where I am trying to access service I had written.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in
message
news:78**********************************@microsof t.com...
> Why are you using legacy COM MSXMLXX objects to do this when you can
> simply
> create a webReference for your ASPX page to use and make a typical .NET
> WebService proxy call?
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "RG" wrote:
>
>> 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.ValueCollectionParam eterReader.Read(NameValueCollection
>> collection)
>> at
>> System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
>> request)
>> at
>> System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
>> at System.Web.Services.Protocols.WebServiceHandler.In voke()
>> at
>> System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
>> " String
>>
>> Would anyone know how to resolve this.
>>
>> Thanks in advance
>>
>>
>>
>>
>>


May 1 '06 #5
RG
I figured out the problem. The parameter name on the service didn't match
that on xmlhttp.send. Specifically, the second parameter.
"RG" <no****@nowhere.com> wrote in message
news:uD**************@TK2MSFTNGP05.phx.gbl...
Is there a documentation on this?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:3E**********************************@microsof t.com...
You could try using the WebService HTC behavior.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RG" wrote:
Thanks for your help. I am customizing Microsoft CRM 3.0. So, the
aspx
code is off limits. However, I could customize an onChange event for a
field. There, is where I am trying to access service I had written.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in
message
news:78**********************************@microsof t.com...
> Why are you using legacy COM MSXMLXX objects to do this when you can
> simply
> create a webReference for your ASPX page to use and make a typical
> .NET
> WebService proxy call?
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "RG" wrote:
>
>> 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.ValueCollectionParam eterReader.Read(NameValueCollection
>> collection)
>> at
>> System.Web.Services.Protocols.HtmlFormParameterRea der.Read(HttpRequest
>> request)
>> at
>> System.Web.Services.Protocols.HttpServerProtocol.R eadParameters()
>> at System.Web.Services.Protocols.WebServiceHandler.In voke()
>> at
>> System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
>> " String
>>
>> Would anyone know how to resolve this.
>>
>> Thanks in advance
>>
>>
>>
>>
>>


May 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
4
by: alex | last post by:
Hi, Does anybody have an idea why is this happening. The following code works great on my development machine (windows 2000 pro), but on the test server (Windows 2000 Server) it can only send...
5
by: Andy G | last post by:
Hi, My plan is to use Try Catch statements to catch an error and then email it to myself. I send the user to a custom error page and I would like to email myself the asp.net error. I thought...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
11
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running...
0
by: Siva | last post by:
Hi, I am new to ASPX. I try to create a aspx page to handle the xml request. I am just staring up the project. I am already error in my aspx page. I couldnt solve it. My ASPX page is bellow: ...
2
by: arun1985 | last post by:
In the project i am using i am having the following code and when i upload it to the server.Its givig me the following error in the global.cs file. Server Error in '/' Application. ...
5
by: pat | last post by:
Hi, i'am using an ac2K progrom which sends automaticle emails with an attachment. Since last week , a error occurs with number 2293. Our mail program is Outlook 2003. It's probably a matter...
0
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.