Build Sample SOAP Integration Services to Display Concatenated String using Oracle Service Bus (OSB) 12C

 This article will guide you to build simple integration with a purpose concatenate two strings using OSB. 


 Open Jdeveloper à Create Application with Name -> ConcatStringApp

 






Once Application is created then will create a new Project under the newly created Application  à

ConcatStringPRJ

 









Once project created will create folder structures specific to components for example

 The schema folder will have WSDL schema definitions , WSDL folder will have WSDL files and ProxyServices folder will have contents related to proxyservices

 




 







So now Project created, next step is to create WSDL.  To create WSDL, we must create Schema definitions and based on that WSDL file will be created.

 

Click on Schema Folder and Click on XML Schema

 



Create Schema Definition by following below screenshot 




Once Schema definition (XSD) created , next step is to create WSDL file based on this newly created XSD

 


Provide the name of WSDL as Concat.wsdl and select Interface Type as Synchronous Interface as our WSDL will have response as well.




select Input and output Response as shown in the screenshot. 


Selecting Input Response from newly created schema definitions 


 



Selecting output Response from newly created schema definitions 




Click on OK to create WSDL file

This is how your WSDL will look 













Now using this WSDL file we will create Proxy Services .


Go to the ProxyServices folder  and Click on New and then Click on Proxy Service






Provide the service name as ConcatProxyService














Click on WSDL radio button 















Select the WSDL file which we have created for this project
















Click Next and Finish to complete the creation of Proxy Services





















Along with Proxy Services , Pipeline also gets created. Click on Pipeline 





 

Once you click on Pipeline , drag the Pipeline Pair













After dragging the pipeline , drag Replace function to the Response Pipeline node






In the Location , Select Body


in Value , from the dropdown select XQuery Expression 


Go to Functions Tab and Click on Strings


Click on Concat function 



Provide the parameters 


I'm providing first parameter as "Hi" as i want to concatenate with payload input string 

Use payload input string as second string which will concatenated with the first string 

Click on Replace Node Contents 





Run the integrations 





Execute the payload by providing the input string 


Here is the final concatenated string 









Comments

Popular posts from this blog

Sample HZ API's script to Create Contacts and Contact Points in Oracle

REST integration built-in OIC to read Large files with size more than 10MB