Quantcast
Channel: SCN : Blog List - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 676

"PutPayloadValueBean" - not only for Synchronous Communications !!

$
0
0

With PI 7.3 SAP has introduced new modules GetPayloadValueBean, PutPayloadValueBean and RemovePayloadValueBean. The modules usage is recently described by Beena ThekdiInsert value from Request message to Response message using GetPayloadValueBean and PutPayloadValueBean

The focus of this blog is to explain some new use cases of PutPayloadValueBean. As per SAP help: Adding PutPayloadValueBean in the Module Processor - Adding Modules to the Module Processor - SAP Library


"Use PutPayloadValueBean to enrich the message with values from a module context. You can use this module in combination with GetPayloadValueBean to enrich a response message with information from the request. Normally you use GetPayloadValueBean to extract values from a message, then execute an adapter module (example, synchronous SOAP call) and finally use PutPayloadValueBean to enrich the response with stored values"

 

 

Although, in SAP help it is described that PutPayloadValueBean can be used in combination with GetPayloadValueBean in case of synchronous communication interfaces, we can still use this module in asynchronous communications with below explained use cases

 

 

Case 1: Pass some static value "PutThisValue" to xml field /ns0:root/field. The trick is to use double quotes "" to treat it as a string rather than as a variable from module context

 

ModuleTypeModule Key
AF_Modules/GetPayloadValueBeanLocal Enterprise BeanPayload
Module KeyParameter NameParameter Value
Payloadput:/ns0:root/field"PutThisValue"
Payloadxmlnsxmlns:ns0 = "http://yourxmlnamespaces"

 

 

 

Case 2: Pass some static value but with xml fields "<Name>Praveen Gujjeti</Name><Company>IBM</Company>" to xml field /ns0:root/field. This way we can enrich basic xml structure at module level using this module

 

ModuleTypeModule Key
AF_Modules/GetPayloadValueBeanLocal Enterprise BeanPayload
Module KeyParameter NameParameter Value
Payloadput:/ns0:root/field"<Name>Praveen Gujjeti</Name><Company>IBM</Company>"
Payloadxmlnsxmlns:ns0 = "http://yourxmlnamespaces"

 

Check results yourself

Hope this information help for your integration requirements

 

 

 

- Praveen Gujjeti


Viewing all articles
Browse latest Browse all 676

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>