Generating XML Schema in Legacy Mode

In this section:

In the legacy version of the iWay .NET Technology Adapter, the following primary functions are used to handle XML schema generation for a method:

Note: In legacy mode, there is limited support for defined complex types. It is recommended to use the new dynamic schema methods for methods with complex types.

The earlier version of the iWay .NET Technology Adapter requires a custom .NET wrapper, or at least recompilation, to consume assemblies. The custom .NET wrapper references iwclr.dll and wraps a target .NET assembly to provide schemas or descriptions for methods by adding special attributes, which will be retrieved by iwclr.dll. The following primary attributes are provided by a wrapper for a method:

The following table lists and describes the key words that are allowed.

Key Word

Type

Description

METHODDESCRIPTION

String

The description of a method.

SCHEMAROOTELEMENT

String

The name of a root element (normally, It is the name of a method).

RAWINPUTSCHEMA

String

Raw request schema (a schema is retrieved from a attribute of a wrapper).

OUTPUTDATANAME

String

The name of an output data.

RAWOUTPUTSCHEMA

String

Raw response schema (a schema is retrieved from a attribute of a wrapper).


Top of page

x
ComposeDocMethod Function

If a custom .NET wrapper for a method has XmlInXmlOutAttribute attributes, then the ComposeDocMethod function is called. The function ComposeDocMethod only supports the method that accepts one XmlElement type input parameter and returns XmlElement type data.


Top of page

x
ComposeRpcMethod Function

If a custom wrapper has ParamsInParamsOutAttribute attributes, then the function ComposeRpcMethod is called. The function ComposeRpcMethod can only support the method that accepts some simple .NET type input parameter(s) (for example, int, String, and so on), and returns some simple .NET type data.


iWay Software