ItoExternalForm()

Serializes the business object data into an external format of the specified MIME type.

Syntax

string ItoExternalForm(string mimeType); 

Parameters

mimeType
The MIME type (of the access client) to convert the business object to.

Return Values

A string that contains the serialized version of the business object, in the specified MIME type.

Exceptions

IMalFormedDataException
Thrown when the conversion runs into an error.

Notes

The ItoExternalForm() method invokes a data handler, passing it the MIME type of the serialized data. The data handler parses and converts the InterChange Server business object into serialized data of the requested MIME type, returning the serialized data to the access client. The format of the serialized data must be of a type that IBM WebSphere InterChange Server Software supports or a custom data handler you have written. For more information, see the Data Handler Guide.

Example

// Serialize data into html
String mimeType = "text/html");
String htmldata = exampleBusObj.ItoExternalForm(mimeType);

Copyright IBM Corp. 1997, 2004