473,406 Members | 2,956 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,406 software developers and data experts.

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 1112

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob T | last post by:
Hi, I'm trying to send an image over XML. My routine gets the name, then gets the image out of a SQL database. This part works fine... but the XML returns the object, I get the following error: ...
3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
2
by: Justin Dutoit | last post by:
Hey. I have a function with a boolean return value, called IsInWarehouse, which checks if a product is available in a warehouse, or not. But I need security in the function too, so I have public...
2
by: Kevin Spencer | last post by:
Hi All, I'm experienceing a new and strange problem with a WebMethod I am working on. It creates an instance of a class which contains a number of fields, Collections, and classes, all of which...
2
by: Jonathan Woods | last post by:
Hi there, I have encountered problem of losing data sending over internet using web service. I consume web service that connected Oracle Database. I submit 687 SOAP Messages to 1 Web Method...
0
by: manevski ognjen | last post by:
Hi, I have one problem with console application and threading. In my SMtp class I have method that sends emmails with attachments with html text. Program should work with, let say 10 emails,...
0
by: tomar | last post by:
Hi friends, I am creating an application in C++ to send image to webservice(developed ib DOTNET) end. I am using gSoap for the same. using gSoap I am able to send images upto 2 to 3 mb but...
2
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.