Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7819005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:45:54+00:00 2026-06-02T06:45:54+00:00

I have created an WCF application that will be consumed by a Delphi 7

  • 0

I have created an WCF application that will be consumed by a Delphi 7 class. AFAIK, C# string type is UTF16 and Delphi’s 7 string type is Ansi.

The question is: because of C# and Delphi string types are different, should I declare all my functions with bytes[] instead of string? Am I gonna have issues by using strings on my methods?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:45:55+00:00Added an answer on June 2, 2026 at 6:45 am

    I think youll need to decalre everything WideString in Delphi.

    You say you made the .NET WCF services and there to be consumed by Delphi 7 clients, but are the clients also under your control? your question seems to imply that is the case. I answer assuming that to be true.

    Even if your [OperationContract]s in .NET side have byte[] type parameters all of the default contract wire serialisers (SOAP, JASON, etc…) will use the .NET XML formatting and this is (AFAK) all UTF-16.

    So whilst you could put your parameters into explicit byte arrays the message payloads would all be UTF-16 XML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my C#-Silverlight-3-Application, I have created a class, that is doing some calculations that
I have a web service that will be consumed by some application (web site
We have created a WCF RESTful service for a WPF(UI) Application. The UI sends
We have created a WCF service hosted in a windows service that handles Authentication
I have created a basic WCF service in IIS. I am aware that this
I have problem with my Android application. I need an application that will send
I have a service application that host several WCF endpoints through different bindings. I
I’ve created a winform application that communicates with a WCF service. The winform displays
We have a Silverlight application that uses WCF Data Services. We want to add
I have created a C# application that I want to split into server and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.