Select the Extensions folder, then click the Add icon.

7 Invoking a Synchronous Web Service from a BPEL Process 7-1 7 Invoking a Synchronous Web Service from a BPEL Process This chapter describes how to invoke a synchronous web service from a BPEL process. This chapter demonstrates how to set up the components necessary to perform a synchronous invocation. This chapter also examines how these components are coded. This chapter includes the following sections: ■ Section 7.1, Introduction to Invoking a Synchronous Web Service ■ Section 7.2, Invoking a Synchronous Web Service ■ Section 7.3, Specifying Timeout Values ■ Section 7.4, Calling a One-Way Mediator with a Synchronous BPEL Process For a simple Hello World sample bpel-101-HelloWorld that takes an input string, adds a prefix of Hello to the string, and returns it, visit the following URL: https:soasamples.samplecode.oracle.com

7.1 Introduction to Invoking a Synchronous Web Service

Synchronous web services provide an immediate response to an invocation. BPEL can connect to synchronous web services through a partner link, send data, and then receive the reply in the same synchronous invocation. A synchronous invocation requires the following components: ■ Partner link Defines the location and the role of the web services with which the BPEL process service component connects to perform tasks, and the variables used to carry information between the web service and the BPEL process service component. A partner link is required for each web service that the BPEL process service component calls. You can create partner links in several ways, including the following: – In the SOA Composite Editor, when you drag a Web Service from the Service Adapters section of the Component Palette into the Exposed Services or External References swimlane. For more information, see Section 2.3, Adding Service Binding Components or Section 2.4, Adding Reference Binding Components. – In the Oracle BPEL Designer, when you drag a Partner Link from the BPEL Constructs section of the Component Palette into the Partner Links swimlane. This method is described in this chapter.