WebMethods开发入门

webMethods  Integration Platform

由用于设计、执行和管理集成解决方案的 3 类组件构成。

设计时组件:这些组件提供了开发和测试集成解决方案的工具。

  1.webMethods Modeler

  2.webMethods Workflow Designer

  3.webMethods Developer

运行时组件:这些组件执行您开发的集成解决方案。

  1.webMethods Integration Server

  2.webMethods Broker

  3.webMethods Adapters

  4.webMethods Mainframe

  5.webMethods Trading Networks & eStandards Modules

  6.webMethods Workflow

管理和监控组件:这些组件可以让您配置运行时环境,并监控平台上集成解决方案的运行情况。

  1.webMethods Administrator

  2.webMethods Monitor

  3.webMethods Manager

 

 

 

WM数据类型 Data Types

DateType   DescriptionJava Type
String  String of characters Java.lang.String
String list  A one-dimensional String array 一维字符串数组 Java.lang.String[]
String Table A two-dimensional String array 二维字符串数组 Java.lang.String
Document

A data structure that is a contain for other variables. Document can contain variables of any other data type. The contents of a document(IData object) are stored as key/value pairs where the variable name is the key.

一种包含其他变量的数据结构。文档可以包含任何其他数据类型的变量。文档(IData对象)的内容存储为键/值对,其中变量名是键。

Com.wm.data.IData Com.wm.util.Values For more information, see the webMethods Integration Server Java API Reference.
Document List A one-dimensional array IS document types(IData [ ] or Values [ ]) Com.wm.data.IData [ ] Com.wm.util.Values [ ] Com.wm.util.Table
Document reference   A document whose structure is defined by an IS document type. Reference to an existing object which implements the com.wm.data.Idata interface or a reference to an existing com.wm.util.Values object.
Document reference list    A document list whose structure is defined by an IS document type. 同上
Object

A data type that does not fall into any of the data types described in the above rows, and is not declared to be one of the basic Java classes supported natively by Integration Server. This icon is used for Objects of unknown type.

不属于上述行中描述的任何数据类型的数据类型,并且没有声明为Integration Server本地支持的基本Java类之一。此图标用于未知类型的对象。

Any subclass of java.lang .Object. Example Java.util.InputStream
Object list An array of Objects of unknown type. An array of any subclass of java.lang.Object. Example java.util.InputStream[ ]

 

语句类型

Flow语言的三种基本语句类型:

  1.MAP 映射 用的比较多的

  2.BRANCH 分支,条件判断

  3.LOOP 循环,根据数组等遍历

其它类型语句外还有:

  4.INVOKE(子程序调用)

  5.SEQUENCE(复合语句)

  6.EXIT

  7.REPEAT

Publish& Subscribe

  publish(以下简称pub)和subscribe(以下简称sub)的概念与JMS中的类似 ,可以说是webMethods中数据同步的核心部分.

  pub&sub主要有两个方面:本地与分布

  本地的pub&sub在一个IS中完成,不牵涉到Broker,实现也比较简单,基本步骤为:

(1) 建立一个Notification对Source数据源的监视,如果数据源发生变化,指定调用某个服务P

(2) 在服务P中通过调用Target数据源的Adapter Service,实现对Target数据源的同步

 

Flow Step

流步骤是webMethods Integration Server在运行时解释和执行的基本工作单元(用webMethods流语言表示)。webMethods流语言提供了以下调用服务的流步骤和允许您在管道中编辑数据的流步骤:

    1. BRANCH 
  2. EXIT
  3. INVOKE
  4. LOOP
  5. MAP
  6. REPEAT
  7. SEQUENCE

webMethods中的数据库操作

一、wmDB

  1. 需要在IS管理后台配置数据库别名;添加别名ZHONG

 

    2. 直接使用wmDB的接口完整对数据库的crud操作

 

   3. 新建flow service,和java中对数据库中的操作一样(获取数据库连接-》数据库crud-》关闭数据库连接),直接调用wmDB中封装好的服务即可。

 

 

二、JDBC Adapter

  1. 需要在IS管理后台配置一个jdbc adapter

   2. 然后直接新建adapter service 

 

 

 

  3.选择一个连接别名

   4.选择一个template

 

 

   5.使用建好的JDBC Adapter Service。

 

 

 常见EDI:

 

 

 

posted @ 2019-12-31 10:29  gqzdev  阅读(2729)  评论(0编辑  收藏  举报