Thursday, August 22, 2019

Looking at the wsdl how can you identify whether the process is one way/sync/async?

Looking at the wsdl how can you identify whether the process is one way/sync/async?

If we check the portType in the wsdl, we can easily identify whether it is one way/sync/async:

oneway: Only input exists in the portType and  in partnerLinkType only one role is there i.e Requester Role no provider.
<wsdl:portType name="BPELProcess1">
<wsdl:operation name="process">
<wsdl:input  message="client:BPELProcess1RequestMessage" />
</wsdl:operation>
</wsdl:portType>

async: Only input and Callback part exists in the portType and in PartnerLinkType two roles will be there  ProviderRole n Requester Role.
<wsdl:portType name="BPELProcess1Callback">
<wsdl:operation name="processResponse">
<wsdl:input message="client:BPELProcess1ResponseMessage"/>
</wsdl:operation>
</wsdl:portType>
<plnk:partnerLinkType name="BPELProcess1">
<plnk:role name="BPELProcess1Provider" portType="client:BPELProcess1"/>
<plnk:role name="BPELProcess1Requester" portType="client:BPELProcess1Callback"/>
</plnk:partnerLinkType>

sync: Both input and output segments exist in the portType and , in partnerLinkType only one role is there i.e Provider Role.
<wsdl:portType name="BPELProcess1">
<wsdl:operation name="process">
<wsdl:input  message="client:BPELProcess1RequestMessage" />
<wsdl:output message="client:BPELProcess1ResponseMessage"/>
</wsdl:operation>
</wsdl:portType>

<plnk:partnerLinkType name="BPELProcess1">
<plnk:role name="BPELProcess1Provider" portType="client:BPELProcess1"/>
</plnk:partnerLinkType>

No comments:

Post a Comment

Featured Post

OIC - how can I use XSLT functions to remove leading zeros from numeric and alphanumeric fields?

To remove leading zeros from an numeric field in Oracle Integration Cloud (OIC) using XSLT, you can Use number() Function The number() funct...