473,410 Members | 1,916 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,410 software developers and data experts.

WSE2 \r\n in string

I am using WSE2.0 to pass some strings from a client to a webservice (both
written in c#). I notice that something is changing the CR \ LF's in my
strings!

\n is ok
\r converted to \n
\r\n converted to \n
\n\r converted to \n\n

Why?

Are there any other characters that get secretly converted? This is my first
attempt at using web services and I am shocked that something is messing with
the contents of my string.

Any solutions?

Andrew
Nov 23 '05 #1
2 3767
Try to use Environment.NewLine . for better result

regards
erymuzuan mustapa

Andrew wrote:
I am using WSE2.0 to pass some strings from a client to a webservice (both
written in c#). I notice that something is changing the CR \ LF's in my
strings!

\n is ok
\r converted to \n
\r\n converted to \n
\n\r converted to \n\n

Why?

Are there any other characters that get secretly converted? This is my first
attempt at using web services and I am shocked that something is messing with
the contents of my string.

Any solutions?

Andrew

Nov 23 '05 #2
The trouble is I have some legacy data files that I am attempting to send to
a web service. The file contains the \r and \n and \r\n character sequences.
If I pass a string (or any object) I expect it to arrive un-altered at the
web service! I should not have to work around this stuff. What other
characters are converted? I could not find anything in the documentation
about the \r conversion!

Andrew

"erymuzuan" wrote:
Try to use Environment.NewLine . for better result

regards
erymuzuan mustapa

Andrew wrote:
I am using WSE2.0 to pass some strings from a client to a webservice (both
written in c#). I notice that something is changing the CR \ LF's in my
strings!

\n is ok
\r converted to \n
\r\n converted to \n
\n\r converted to \n\n

Why?

Are there any other characters that get secretly converted? This is my first
attempt at using web services and I am shocked that something is messing with
the contents of my string.

Any solutions?

Andrew

Nov 23 '05 #3

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

Similar topics

0
by: Hai Ta | last post by:
Please help We have been stuck for the past 2 weeks in trying to implement a webservice using WSE2 such that consumer can access with the following soap header. <?xml version="1.0"...
0
by: JMZ | last post by:
We have a web service that is called directly from clients via an IE hosted Windows control. We issue our own certificates and use them as part of the authentication process as well as in WSE2....
0
by: Zaffar | last post by:
I am trying use UserNameToken with WSE2. There is always some error or other. Like Actually the problem lies in Web.Config Settings. Does any one know all the required settings for WSE2 and...
0
by: JJJ | last post by:
Just a quick question I think... I have a web service, implemented with WSE2 and secured with WS-Security Username tokens - When I autogenerate WSDL (using ?WSDL query strings) the WS-Security...
1
by: Chris Ashley | last post by:
I am trying to log all the messages sent to/from my web services and read somewhere that WSE2 would let me do this. I have just installed this and added the following to my code: ...
0
by: Sid DeLuca | last post by:
I'm modifying the WSE2 HOL sample to develop my web service. I'm able to get the client application's username token encrypted on the way out (outputTrace.webinfo), but not on receipt from the...
0
by: AC | last post by:
I got a requriement of sending something from a winform client written by c# to a server implied by Java. And I tried to send the content using SoapReceivers and SoapSender, WSE2.0. When I change...
0
by: David G | last post by:
I have a web service originally written to use soap.tcp transport in WSE2 that now uses http transport under WSE3. The WSE2 method looked like public IndividualLookupResponse...
4
by: Manikrag | last post by:
Hi Team, Is it possible to sort select query based on input string? I am looking for somthing like: select TOP 20 PREFERRED_NAME from FRS_TABLE where Lower(PREFERRED_NAME) like...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.