Run Time Implementation

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:

  1. Retrieves an instance of the working class, which supports the method by calling Assembly.CreateInstance.
  2. Discovers parameter information for all parameters of the method by calling MethodInfo.GetParameters.
  3. 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.
  4. Calls MethodInfo.Invoke to execute the method and return an object.
  5. Serializes the return object, converts the public fields and read/write properties of an object into XML.
  6. Generates XML data based on the result XML and the response schema of the method.
  7. Returns the final XML data to the caller.

iWay Software