官术网_书友最值得收藏!

Communicating between BPEL to/from Java

To reuse and integrate applications, one can create web services using XML and HTTP. Web Service Description Language (WSDL) is an XML-based language for describing web services. The web services can be located and invoked over the Web using WSDL from the service providers.

A WSDL contains an element named <binding> which describes how the message is transmitted on the wire and a <service> element that contains the location of the web service.

The <portType> element in WSDL provides a set of operations for the calling clients. Port type is very similar to the concept of interfaces in Java. Java interface specifies methods that a calling client can consume but only by specifying a method of its own. Similarly, Port type in WSDL specifies the operations available that a calling client can consume but only by specifying an operation of its own.

Usually BPEL process consists of multiple steps that provide an overall process. Each step is called an activity. BPEL interacts with external services either by invoking operations on external web services or by receiving invocations from external entities. In simple words, it is either the consumer that invokes operations to others or the provider that receives invocations from others.

Invoking a BPEL process from Java

BPEL is a workflow system that manages coordination and communication for multiple concurrent conversations at the same time. Administrators can view the status of each request in the Enterprise Manager (EM) console.

BPEL provides client interfaces via SOAP, JCA, or native Java. BPEL itself is a service that can be invoked from Java programs. BPEL processes can be invoked using Oracle-provided Java APIs. Usually the BPEL processes are invoked from a Java program using Partner Link.

A BPEL process is available for invocation from standalone Java using one of the following interfaces:

  • WSDL Interface
  • BPEL Process Manager Java API
  • JDeveloper Web Services Proxy
  • Business delegate Java interface

Invoking BPEL is similar to calling any other web service from a Java program. BPEL implements a service that is defined in the WSDL. In case you are using Eclipse or NetBeans for writing the Java code, right-click on your project and select New Web Service Client. Select the WSDL for a BPEL process in the dialog box.

BPEL can be initiated from Java using business delegate Java interface from a locally or remotely used RMI. Partner Link allows BPEL to have conversations with WSDL-defined web services.

In JDeveloper, we can invoke a BPEL process from Java programs using the SOAP interface or native Java interfaces. The following figure shows the structure of invoking a BPEL process:

In Java, the invocation of web services is performed using the JAX-RPC library. JAX-RPC Java API enables Remote Procedure Calls (RPC) and XML-to-Java and Java-to-XML mapping. Use generic Java API to invoke a BPEL process.

主站蜘蛛池模板: 利川市| 桂平市| 冕宁县| 射洪县| 绥芬河市| 陇南市| 沾化县| 南木林县| 开封市| 咸阳市| 琼中| 拜泉县| 布拖县| 广平县| 启东市| 临海市| 江陵县| 黔西| 鞍山市| 谷城县| 郓城县| 余庆县| 襄垣县| 安新县| 巴彦淖尔市| 陆河县| 绥阳县| 喜德县| 洮南市| 翁牛特旗| 婺源县| 临泉县| 赞皇县| 昌吉市| 汉阴县| 富平县| 贵港市| 芦溪县| 丹东市| 茂名市| 淄博市|