Hello everyone,
I am writing a simple web method which returns byte[], and the byte[] is encoded by UTF-8. I have investigated related WSDL and soap message, seems the underlying web services stack will use base64 encoding?
For various reasons, I can not use or re-encode my return byte[] from UTF-8 to base64. Any ideas to modify the base64 encoding to UTF-8 encoding?
Here is my related web methods, SOAP message and related type in WSDL
[Code]
Web service server side code
[WebMethod]
public byte[] HelloWorld2()
{
return utf8encodedbytes;
}
SOAP response
related type in WSDL
xsd:base64Binary
[/Code]
thanks in advance,
George
Jan MontanoPosted Feb 23, 2009, 8:31 PM
Convert.FromBase64CharArray()
Convert.FromBase64String()