468,268 Members | 1,536 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

Sending text to my webmethod returns exception

I have a webservice running and I have a method with a string parameter.
The method is quering an xml file but i need to enter the exact letter case
in the string to get the right reult otherwise is returning me and Exception.

for example this xml...

<location id="123">Finance</location>
<location id="124">Operations</location>

if the parameter i send is "finance" i'll get an exception. It will only let
me enter "Finance" to get the right Response.

Please help me
Aug 16 '06 #1
1 990

Hello @rturo,

If you are using the xml file, it is case sensitive only, and allows the
comparisions of the attributes or elements of xml file with case sensitivity.
If you wish to compare the strings from client app with xml file without
case sensitivity then You can convert the strings to upper or lower case in
the webservice only and then go on with the function logic.
Also, if you don't convert the string to lower or upper case, then also it
does not throw any exception to you, there is a possibility that some bug
might have been introduced in the code only.

Hope this helps you, let me know in case of further assistance.

Jay Kudecha.

"@rturo" wrote:
I have a webservice running and I have a method with a string parameter.
The method is quering an xml file but i need to enter the exact letter case
in the string to get the right reult otherwise is returning me and Exception.

for example this xml...

<location id="123">Finance</location>
<location id="124">Operations</location>

if the parameter i send is "finance" i'll get an exception. It will only let
me enter "Finance" to get the right Response.

Please help me
Aug 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rob T | last post: by
3 posts views Thread by Robert A. van Ginkel | last post: by
2 posts views Thread by Justin Dutoit | last post: by
2 posts views Thread by Kevin Spencer | last post: by
2 posts views Thread by Jonathan Woods | last post: by
reply views Thread by manevski ognjen | last post: by
reply views Thread by tomar | last post: by
4 posts views Thread by =?Utf-8?B?R3V5IENvaGVu?= | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.