In the run time, the iWay Technology Adapter for .NET
will execute a method of an Assembly by passing XML data based on
a request schema.
In order to implement the purpose of running a method, the adapter
performs the following steps:
- Retrieves an instance of the working class, which supports
the method by calling Assembly.CreateInstance.
- Discovers parameter information for all parameters of the method
by calling MethodInfo.GetParameters.
- Loads and parses the input XML data to retrieve element nodes,
which represent values of the parameters in XML format, and deserialize
the XML string based on each element node to construct objects for
the parameters.
- Calls MethodInfo.Invoke to execute the method and return
an object.
- Serializes the return object, converts the public fields and
read/write properties of an object into XML.
- Generates XML data based on the result XML and the response
schema of the method.
- Returns the final XML data to the caller.