PipeLine学习笔记(二) 使用Xml Disassemble 



你将学会

1.       创建Schema

2.       创建PipeLine

3.       使用Xml disassemble

4.       测试Pipeline

5.      

 

 

用例介绍

将输入Xml文件分解成文档Xml

 

输入

<Customers>

    <Customer>

        <CustomerID>1</CustomerID>

        <Name>xuzhong</Name>

    </Customer>

    <Customer>

        <CustomerID>2</CustomerID>

        <Name>yangerkf</Name>

    </Customer>

    <Customer>

        <CustomerID>3</CustomerID>

        <Name>xxx</Name>

    </Customer>

</Customers>



输出

每一个子节点

File1

<Customer>

    <CustomerID>1</CustomerID>

    <Name>xuzhong</Name>

</Customer>

File2

<Customer>

    <CustomerID>2</CustomerID>

    <Name>yangerkf</Name>

</Customer>

File3

<Customer>

    <CustomerID>3</CustomerID>

    <Name>xxx</Name>

</Customer>

 

Step by step

 

1.       创建解决方案

2.       创建项目

3.       创建Envelope Schema

4.       创建Document Schema

5.       测试Schema是否符合Pipeline要求

(1)
生成Envelope测试实例,创建文件Test.xml,内容为用例内容,保存到项目目录中

6.       创建Pipeline

(1)
创建CustomerPipeline.btp

(2)
添加Xml disassemble

(3)
配置Document Schema SchemaDocument.xsd

(3)
配置Evnelope Schema SchemaEnvelope.xsd

7.       创建Orchestration

(1)
创建一个Orchestration

(2)
创建一个接收端口,接收数据类型为SchemaDocument,使用后期绑定端口

(3)
部署

(4)
配置接收端口,配置接收PipelineCustomerPipeline

(5)
这样,接收的SchemaSchemaEnvelope,但输入的到Orchestration中的SchemaSchemaDocument

时间原因,不进行演示了

 

这是我2005-02-16写的文档,现在将它发布到我的blog中。

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-10-22
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-10-16
  • 2022-02-25
  • 2022-01-28
  • 2022-01-24
  • 2021-12-03
  • 2021-10-03
相关资源
相似解决方案