IcreateBusinessObjectFrom()

指定された MIME フォーマットの直列化データを IBM WebSphere Business Integration Server Express and Express Plus ビジネス・オブジェクトに変換します。

構文

IBusinessObject IcreateBusinessObjectFrom(string serializedData,
      string mimeType);
 

パラメーター

serializedData
着信直列化データ。

mimeType
serializedData データの MIME タイプ。

戻り値

serializedData データからデータ・ハンドラーが作成するビジネス・オブジェクトを保持する IBusinessObject オブジェクト。

例外

ICxAccessError
データをビジネス・オブジェクトに変換できないときに、またはデータ・ハンドラーにアクセスできない場合に、スローされます。

注記

IcreateBusinessObjectFrom() メソッドは、その指定された mimeType MIME タイプの serializedData データを IBM WebSphere Business Integration Server Express and Express Plus に送信します。IBM WebSphere Business Integration Server Express and Express Plus 内のサーバー・アクセスは、指定された MIME タイプを IBM WebSphere Business Integration Server Express and Express Plus 環境と互換性のある IBM WebSphere Business Integration Server Express and Express Plus ビジネス・オブジェクトに変換するために必要なデータ・ハンドラーを呼び出します。

serializedData データは、ビジネス・オブジェクト作成時に使用するビジネス・オブジェクト定義の名前を指定する必要があります。データ・ハンドラーは、データの解析およびビジネス・オブジェクトへの変換を行い、それを IBM WebSphere Business Integration Server Express and Express Plus 内のサーバー・アクセスに戻します。続いて、IBM WebSphere Business Integration Server Express and Express Plus はそれをアクセス・クライアントに戻します。直列化データの外部フォーマットは、データ・ハンドラー (IBM WebSphere Business Integration Server Express and Express Plus 提供の、またはユーザー作成のカスタム・データ・ハンドラー) がサポートするタイプである必要があります。詳しくは、「データ・ハンドラー・ガイド」を参照してください。

// 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);
 

Copyright IBM Corp. 2004