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

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...