calling a web service parameters encoding type issue

vinceliu666vinceliu666 Member Posts: 51
Hi All:

I try to calling a Web service with parameter . It's working fine with encoding type Ascii , but it doesn't work when i use utf8 which getting error code 500 (Inernal service error )and why? how could i fix it?


stream := stream.StreamWriter(Request.GetRequestStream(), ascii.ASCII); ok
//stream := stream.StreamWriter(Request.GetRequestStream(), ascii.utf8); error 500
stream.Write(xml);
stream.Close();

Answers

  • vaprogvaprog Member Posts: 1,144
    Check the header fields. Does the web service know you are trying to send UTF-8?
Sign In or Register to comment.