473,219 Members | 1,741 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,219 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 1107

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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.