Search:
Namespaces
Discussions
.NET v1.1
Feedback
how to change the default enconding in the xmlheader of a SOAP ws?
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebservices' list
.
Calle Stahl
How can I change the the encoding from utf-8 to ISO-8859-1?
Because I'm building a swedish WS I must be able to return
other chr than those allowed in utf-8.
Below you can se what I whant to change.
/Calle
----------- change this ----------------------------
<?xml version="1.0" encoding="utf-8"?>
----------------------------------------------------
<soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"
;>
<soap:Header>
<MyHeader xmlns="
http://www.contoso.com"
;>
<Username>Admin</Username>
<Password>MyPassword</Password>
</MyHeader>
</soap:Header>
<soap:Body>
<MyWebMethod xmlns="
http://www.contoso.com"
; />
</soap:Body>
</soap:Envelope>
Reply to this message...
Alex DeJarnatt
UTF-8 is a format of Unicode and supports every Unicode character (so
pretty much every character -- including every character in iso-8859-1).
Also, every XML processor is required to support UTF-8. Because of
this, we felt that UTF-8 was a great choice for SOAP responses. I think
it will work in your case as well.
alex
-----Original Message-----
From: Calle Stahl [mailto:
Click here to reveal e-mail address
]=20
Sent: Wednesday, July 31, 2002 2:21 AM
To: aspngwebservices
Subject: [aspngwebservices] how to change the default enconding in the
xmlheader of a SOAP ws?
How can I change the the encoding from utf-8 to ISO-8859-1?
Because I'm building a swedish WS I must be able to return
other chr than those allowed in utf-8.
Below you can se what I whant to change.
/Calle
----------- change this ----------------------------
<?xml version=3D"1.0" encoding=3D"utf-8"?>
----------------------------------------------------
<soap:Envelope xmlns:soap=3D"
http://schemas.xmlsoap.org/soap/envelope/"
;>
<soap:Header>
<MyHeader xmlns=3D"
http://www.contoso.com"
;>
<Username>Admin</Username>
<Password>MyPassword</Password>
</MyHeader>
</soap:Header>
<soap:Body>
<MyWebMethod xmlns=3D"
http://www.contoso.com"
; />
</soap:Body>
</soap:Envelope>
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com