How can I change SOAP element names to reserved words in Delphi? -
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 it: & lt; NS1: toHeader & gt; ... & lt; / NS1: Toather & gt; It is possible to change the class registration, so that it can translate the element with a different name, such as:
Or is the only way to tweak the request stream?
Delphi has a reserved word, I class 'name'.
It looks like what the third parameter is. Try it out:
RemClassRegistry.RegisterXSClass (ToHeader, ADD_URI, 'to'); As Delphi 8, you can do use reserved words for identifiers. As an escape character, & amp; Use , or use a fully qualified name:
type & amp; To = class; RemClassRegistry.RegisterXSClass (UnitName.To, Add_URI);
Comments
Post a Comment