TROXMLSerializationOption

Overview

TROXMLSerializationOption defines several options used to control the exact layout of SOAP messages.

Location

  • Unit: uROXMLSerializer.pas
Value Description
xsoClientIdInWsdl When set the client id becomes part of the wsdl as a soap header, and is included in imports in other languages.
xsoDocument Document mode. When set soap messages are sent as Document style, else as RPC style. Document style is different in the way the messages are wrapped, instead of multiple parameters in the WSDL, there is only 1 parameter for the request, and 1 for the response. The parameter itself contains the actual parameters. During importing with the Service Builder the "Enable Special Handling for .NET wrapped parameters" options has to be set.
xsoDocumentLiteralWrappedNaming True means using strict Document Literal Wrapped naming conventions, i.e ServiceName__OperationName intead of just OperationName
xsoEncodedXML When set XmlNode types are encoded as escaped xml, instead of inline xml. Implied when in RPC/Encoding mode.
xsoExternalTypesAsReferences The ExternalTypesAsReferences option makes it possible to import a "contract-first" wsdl with xsd files and link to xsds instead of embedding them in the wsdl.
xsoIgnoreStructureType When set the structure type in the xml document is ignored and the one defined in the RODL is used instead. This disables the subclass support for structures but is required for some services that return invalid type names.
xsoSendUntyped This flag enables literal mode. when set the field types are omitted, and the values are stored as small as possible.
xsoSkipOperationName need for third-party SOAP services
xsoSoap12 Instructs to use SOAP version 1.2 instead of 1.1
xsoSplitServiceWsdls When set each service will get it's own WSDL, in the form of http://url?service=ServiceName, instead of all services in a single WSDL. Some (non-RO) importers don't allow for multiple services in a single wsdl; this option can be used to generate compatible WSDL for those.
xsoStrictStructureFieldOrder When set the values are written in the order defined in the RODL/WSDL, not by alphabet. Should be set for doc/literal services
xsoWriteMultiRefArray When set arrays are stored as href attributes in the xml document, and the actual arrays are stored as root nodes. Not recommended unless required by the remote client or server as the href resolving slows the parsing down. Can only be used with RPC/Encoding mode.
xsoWriteMultiRefObject When set structures are stored as href attributes in the xml document, and the actual structures are stored as root nodes. Not recommended unless required by the remote client or server as the href resolving slows the parsing down. Can only be used with RPC/Encoding mode.