Handle header parameters into split join for OSB 12c

February 27, 2018

Reading time ~2 minutes

In this post, we will see a way to receive and transfer header parameters into a split join component using Jdeveloper 12c. There we go:

Create the split join WSDL

First, we need to create a WSDL file for the split join component.

<?xml version= '1.0' encoding= 'UTF-8' ?>
<wsdl:definitions name="SplitJoinService" targetNamespace="http://xmlns.oracle.com/TestSplitJoin/SplitJoinService"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
      <xsd:complexType name="header_parameters_type">
          <xsd:element name="string_parameter" type="xsd:string"/>
          <xsd:element name="int_parameter" type="xsd:int"/>
      <xsd:complexType name="body_type">
          <xsd:element name="value" type="xsd:string"/>
      <xsd:element name="header_parameters" type="tns:header_parameters_type"/>
      <xsd:element name="content_body" type="tns:body_type"/>
  <wsdl:message name="requestMessage">
    <wsdl:part name="header_parameters" element="tns:header_parameters"/>
    <wsdl:part name="content_body" element="tns:content_body"/>
  <wsdl:portType name="execute_ptt">
    <wsdl:operation name="execute">
      <wsdl:input message="tns:requestMessage"/>
  <wsdl:binding name="execute_bind" type="tns:execute_ptt">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="execute">
      <soap:operation style="document" soapAction="execute"/>
        <soap:body parts="content_body" use="literal"
        <soap:header message="tns:requestMessage" part="header_parameters" use="literal"/>

As you can appreciate in the code above, there is a header section (soap:header) at the end of the document, so it will be necessary to be used in the split join.

Create the split join component

Create a split join component from the composite and use the WSDL previously created above.

It will look like the image below

Open the split join and include an assign component.

Then, In the image below we can find parameter headers defined in the wsdl.

Now, what is important if we want to transfer the header to another service then just is necessary to replace the value of request.header_parameters with some another value or xml structure that corresponds to the wsdl of the external service. Finally, add the invoke service and set the Request variable as the same request used before.


This is one of the solutions to handle headers into split join that I consider as good enough. If you have any suggestion or question let me know.

Christopher is part of middleware Sysco. He is CTO of his own startup in South America. He was working with differents open source solutions. Also He was participating in several programming tournaments related to algorithms of Computer Science. Actually these last years, he gained experience with Oracle MAF, ADF ,OSB and other Oracle solutions.

Why we chose for Vue.js

At Sysco we have recently started using Vue.js. Vue is an amazing, powerfull and fun to work with front-end framework. In this blog post ...… Continue reading