Calling a webservice that uses ISO-8859-1 encoding from WCF

前端 未结 4 1732
夕颜
夕颜 2020-11-30 06:21

I am trying to call a webservice using WCF that uses the following encoding:

 

I cann

4条回答
  •  执念已碎
    2020-11-30 07:07

    Another option is using the older .NET Framework 2.0 ASMX WebServices technology which supports iso-8859-1 out of the box:

    And if the service uses Basic HTTP Authentication you can specify it like this:

    TheService theService = new TheService();
    theService.Credentials = new NetworkCredential("username", "password");
    

提交回复
热议问题