OIC/Integration/1 → SOAP Connection in Oracle Integration Cloud

integratio
4 min readAug 26, 2023

--

This is a post on Oracle Integration Cloud highlighting the integration of SOAP adapter in the flow.

Integration

(1) Flow: [a] SOAP (SOAP trigger) → [b] Map SOAP Invoke to Request → [c] Invoke Hello SOAP (SOAPInvoke) → [d] Map Response → [e] Reply

(2) Flow Description: Here we are creating an App Driven Orchestration flow which exposes as a SOAP service and when it is invoked, it calls a target SOAP service, get the SOAP response and return it to the caller of the flow.

(3) Steps:

First, we will create a SOAP connection from OIC console → Connections like below.

Create Connections for Soap: go to “Connections” > Create Connection -Select Adapter > SOAP

Use the below WSDL: HelloUser.wsdl

<?xml version='1.0' encoding='UTF-8'?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://test.com/services/helloUser"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
name="HelloUser"
targetNamespace="http://test.com/services/helloUser">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://learnwebservices.com/services/hello"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://test.com/services/helloUser" version="1.0">
<xs:complexType name="helloUserReq">
<xs:sequence>
<xs:element name="FirstName" type="xs:string"/>
<xs:element name="LastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="helloUserResp">
<xs:sequence>
<xs:element name="HelloMessage" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="HelloUserRequest" nillable="true" type="tns:helloUserReq"/>
<xs:element name="HelloUserResponse" nillable="true" type="tns:helloUserResp"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="HelloUserReqMsg">
<wsdl:part element="tns:HelloUserRequest" name="HelloUserRequest"></wsdl:part>
</wsdl:message>
<wsdl:message name="HelloUserRespMsg">
<wsdl:part element="tns:HelloUserResponse" name="HelloUserResponse"></wsdl:part>
</wsdl:message>
<wsdl:portType name="HelloUser">
<wsdl:operation name="helloUserCall">
<wsdl:input message="tns:HelloUserReqMsg" name="HelloUserReqMsg"></wsdl:input>
<wsdl:output message="tns:HelloUserRespMsg" name="HelloUserRespMsg"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloUserSoapBinding" type="tns:HelloUser">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="helloUserCall">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="HelloUserReqMsg">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="HelloUserRespMsg">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloUserService">
<wsdl:port binding="tns:HelloUserSoapBinding" name="HelloUser">
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

WSDL: https://apps.learnwebservices.com/services/hello?WSDL

Here we are using “HelloUser.wsdl” for exposing service via SOAP trigger.

Now configure the flow.

Go to OIC console → Integrations → Create an App Driven Integration with your project name.

[a] SOAP Trigger:

Let's first put the invoke activity first and then map fields later.

[c] Invoke SOAP:

[b] Map SOAP Invoke to Request:

[d] Map SOAP Response to Reply:

The overall flow looks like this:

Save the flow and activate tracking.

………………………………………………………………………………………………

--

--

integratio

📌 IT Backend enthusiast 📌 Blogging about Oracle FMW, Python, Cloud related technologies 📌 Non monetized, non hustle 📌 Knowledge sharing sole purpose