WCF and Delphi. Should I use bytes [] or string?

I created a WCF application that will be used by the Delphi 7 class. Type AFAIK, C # string- UTF16and type Delphi 7 string- Ansi.

The question is, because of the types of strings, C # and Delphi are different, should all my functions be declared with bytes[]instead string? Am I having trouble using stringsfor my methods?

+3
source share
1 answer

I think you need to decal all WideString in Delphi.

, .NET WCF Delphi 7, ? , , , . , , .

[OperationContract] s .NET [], (SOAP, JASON ..) .NET XML, (AFAK) UTF-16.

, , UTF-16 XML.

+1

All Articles