calling a web service parameters encoding type issue

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 Posts: 916Member
    Check the header fields. Does the web service know you are trying to send UTF-8?
Sign In or Register to comment.