创建客户机驱动程序消息集

使用以下指示信息创建消息集,用于定义驱动客户机流的消息。

  1. 创建名为 SampleDriverMessages 的新消息集项目,请参阅 IBM Integration Bus 文档中的消息集项目
  2. 创建名为 driverMessage.mxsd 的新消息定义文件,请参阅 IBM Integration Bus 文档中的创建消息集
  3. 创建名为 OrderMessage 和 OrderResponse 的新消息,请参阅 IBM Integration Bus 文档中的添加消息模型对象
  4. 右键单击 OrderMessage,然后单击“添加本地元素”。
  5. 选择 localElement 并切换到“消息定义”编辑器中的“属性”视图。
  6. 从“类型”列表选择“(新建复杂类型)”。将显示“新建复杂类型”窗口。
  7. 单击“确定”创建本地复杂类型。
  8. 要将下表中每个元素都添加到 OrderMessage,请右键单击 {Local complexType},然后单击“添加本地元素”并重命名该元素。

    OrderMessage
    元素名 元素类型
    First Name xsd:string
    LastName xsd:string
    Street xsd:string
    City xsd:string
    ZipCode xsd:string
    PartNumber xsd:string
    Quantity xsd:int

  9. 要将下表中每个元素都添加到 OrderResponse 消息,请右键单击 OrderResponse,然后单击“添加本地元素”并重命名该元素。

    OrderResponse
    元素名 元素类型
    Status xsd:string
    AMT xsd:int
    PartNo xsd:string
    PartQuantity xsd:int

将消息与下图进行比较以确保它们格式正确:

driverMessage 消息集的截屏。

您现在可以创建 Web Service 客户机消息流,请参阅创建 Web Service 客户机流

返回到“构建‘异步使用者’样本”