Mmmm, then I've got some bad news for you... I found this in a newsgroup:
Hi Paul,
Right now the responseencoding and requestencoding is not supported from
Web service.
Luke
Microsoft Online Support
So I think it won't be possible.
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
<
[email protected]> schreef in bericht
Thanks for help jan
but this as no effect
in my tcp trace
- http header is always ...utf-8
- xml prolog of the response is always ...utf-8
The client is a soap one!
Another idea?
Here is the service:
====================
Imports System.Web.Services
<System.Web.Services.WebService
(Namespace:="
http://tempuri.org/pharmacies/Service1")> _
....
Public Class Service1
Inherits System.Web.Services.WebService
<WebMethod(), Protocols.SoapRpcMethod("PharmList")> _
Public Function PharmList() As String
Dim str As String
str = "âêîôûéàèùöäüë"
Return str
End Function
End Class
Here is the web.config:
=======================
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Windows" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="false" requestLimit="10"
pageOutput="false" traceMode="SortByTime"
localOnly="true" />
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1" fileEncoding="iso-8859-1"/>
</system.web>