解決方法:HTTPRIO1的屬性---HttpWebNode--UseUtf8InHeader設置為true
代碼片斷:
function TLoginManager.Get_LoginManagerSoap: ILoginManagerSoap;
const
? defSvc='LoginManager';
? defPrt='LoginManagerSoap';
var
? RIO: THTTPRIO;
begin
? Result:= nil;
? RIO:= THTTPRIO.Create(nil);
? try
??? Result:=(RIO as ILoginManagerSoap);
??? RIO.WSDLLocation := SemsClientApp.Config.Server.URL+'/WebService/LoginManager.asmx?wsdl';
??? RIO.Service:=defSvc;
??? RIO.Port:=defPrt;
??? RIO.HTTPWebNode.UseUTF8InHeader:=True;
? finally
??? if (Result=nil) then RIO.Free;
? end;
end;