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 191495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:20:46+00:00 2026-05-11T16:20:46+00:00

I use this line to register a class with the Delphi registry for Soap

  • 0

I use this line to register a class with the Delphi registry for Soap elements:

RemClassRegistry.RegisterXSClass(ToHeader, ADD_URI);

In the Soap request message, I see this:

 <NS1:ToHeader> ... </NS1:ToHeader>

Is it possible to change the class registration so that it renders the element with a different name, like:

 <NS1:To> ... </NS1:To>

or is the only way to tweak the request stream?

To is a reserved word in Delphi, I can not rename the class to the element name ‘To’.

  • 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-05-11T16:20:46+00:00Added an answer on May 11, 2026 at 4:20 pm

    Looks like that’s what the third parameter is for. Try this:

    RemClassRegistry.RegisterXSClass(ToHeader, ADD_URI, 'To');
    

    As of Delphi 8, you can use reserved words for identifiers. Use & as an escape character, or use a fully qualified name:

    type
      &To = class;
    
    RemClassRegistry.RegisterXSClass(UnitName.To, Add_URI);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this line in my .htaccess file to automatically add a trailing slash
I usually use this line to import file from out of the current folder
I'm trying to use this line to detect browser type: IE or Firefox. alert(isBrowser(Microsoft));
I want to use this line of code: using (ADataContext _dc = new ADataContext(ConnectionString),
It was suggested that I use this line of code to call an image
In order to delete all .svn files/folders/subfolders in myfolder I use this simple line
I'm trying to use this fairly standard line of code in my app: [[UIApplication
How can I use sed to replace this line char * path_list_[1] = {
I use the line below in my C# winform app, this works great but
JSLint is giving me this error: Problem at line 11 character 33: Use the

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.