delphi调用C# webservice

delphi调用C# webservice ,使用导入的wsdl 需要在 pas 里最后加上一句话:

1、不识别问题

InvRegistry.RegisterInvokeOptions(TypeInfo(HospitalServiceSoap),ioDocument);

不加的话导致 入参对方不识别。

2、编码问题

RIO.HTTPWebNode.UseUTF8InHeader:=True;

猜你喜欢

转载自blog.csdn.net/Bthm_123/article/details/118895590