Converts serialized data in the specified MIME format into an IBM WebSphere InterChange Server business object.
Syntax
IBusinessObject IcreateBusinessObjectFrom(string serializedData, string mimeType);
Parameters
Return Values
An IBusinessObject object to hold the business object that the data handler creates from the serializedData data.
Exceptions
Notes
The IcreateBusinessObjectFrom() method sends the serializedData data in its specified mimeType MIME type to InterChange Server. The Server Access Interface within ICS invokes the necessary data handler to convert the specified MIME type into an IBM WebSphere InterChange Server business object, which is compatible with the IBM WebSphere InterChange Server environment. The serializedData data must specify the name of the business object definition to use when creating the business object. The data handler parses and converts the data into a business object, returning it to the Server Access Interface within ICS, which in turn returns it to the access client. The external format of the serialized data must be of a type that a data handler (IBM WebSphere InterChange Server-delivered or a custom data handler you have written) supports. For more information, see the Data Handler Guide.
Example
// Declare the object String custData = "exampleXmlData"; String mimeType = "text/Xml"; IBusinessObject exampleObj = null; // This method creates the business object from data in XML format exampleObj = accessSession.IcreateBusinessObjectFrom(custData, mimeType);