Ask a Question related to ASP.NET Web Services, Design and Development.
-
Stephen Ahn #1
sending "\x01" to web service
Given a web method like this :
[WebMethod]
public string DoEcho(string data)
{
return "echoed <" + data + ">";
}
When this method is called from the client, eg :
string res = service1.DoEcho("\x01");
you get a : System.Xml.XmlException, with message like :
"hexadecimal value 0x01, is an invalid character."
I understand this by design, since chars like 0x01
are not valid XML chars, according to docs like :
[url]http://www.w3.org/TR/REC-xml/#NT-Char[/url]
However, just say I still really need to send these sort
of strings around. One possibility is to convert the string
to a byte array, then send as byte array (base64
encoded string by dotent). However, this
seems inefficient.
Has anyone else had this requirement, and found a
good workaround ?
TIA,
Stephen
Stephen Ahn Guest
-
[LINUX] cfmx7 saving jvm settings in admin w/ no changesERRs entire cfmx service w/ Jrun "500 null" on service restart.
Originally, I put this in the GETTING STARTED section but it may be more relevant here??? PLEASE PLEASE take a look and let me know the prognosis ... -
cfprocparam sending "???????" to SQL Server
I have a SQL Server stored procedure that expects an nvarchar parameter. The cfprocparam is sending Russian characters, but the stored proc seems... -
Jmail only sending "body" in first run of loop
I have designed a newsletter that will send any news to my subscribers as soon as it is added to my front page. I have four dynamic bindings which... -
Sending "forms" without text?? Please help
Hi, my knowledge of Flash so far is very basic but I am trying to learn. I would like to know if it's possible to do a screen capture and mail... -
Problem sending mail on Server 2003 "SendUsing" configuration is invalid
Hi, I have a C# asp.net app that sent mail fine on server 2000 or win 2000, but now I moved it to our new 2003 box, and it's giving me "The... -
Chad Z. Hower aka Kudzu #2
Re: sending "\x01" to web service
"Stephen Ahn" <noaddress_at_noaddress.com> wrote in news:e5y3ji2gFHA.2472
@TK2MSFTNGP15.phx.gbl:Bytes your best way. If you dont want the base 64 encoding you can look at DIME, etc to alter the> However, just say I still really need to send these sort
> of strings around. One possibility is to convert the string
> to a byte array, then send as byte array (base64
> encoded string by dotent). However, this
> seems inefficient.
transport mechanism.
--
Chad Z. Hower (a.k.a. Kudzu) - [url]http://www.hower.org/Kudzu/[/url]
"Programming is an art form that fights back"
Blog: [url]http://blogs.atozed.com/kudzu[/url]
Chad Z. Hower aka Kudzu Guest



Reply With Quote

