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

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.

主站蜘蛛池模板: 澜沧| 前郭尔| 贵州省| 平谷区| 肥西县| 太和县| 渭南市| 贡觉县| 雷波县| 友谊县| 麻江县| 嘉峪关市| 高阳县| 鄂温| 清苑县| 平遥县| 汶川县| 黄石市| 金平| 黄平县| 唐河县| 博客| 读书| 伊金霍洛旗| 澳门| 乌海市| 尉犁县| 桃源县| 肃南| 丹阳市| 武强县| 西充县| 屯门区| 密云县| 南投市| 根河市| 安吉县| 上饶市| 罗定市| 大渡口区| 巴青县|