Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Need help in scenario : Append/Replace String in the polled file in PI

$
0
0

Hi All,

       I have scenario File to Web services.Where in via file channel we are polling files and then transfer it to webservices post mapping.

 

Issue : We have free text in the XML file. And The same needs to replaced by a URL.

 

E.g.: If in the text value is : /Kunal/PI  we have to replace the same with : http://www.sap.com/Kunal/PI

 

And post that we have to do mapping.

 

Need any java class code to do the same which search the value :  /Kunal/PI in the file and replace all by : http://www.sap.com/Kunal/PI

as I am not that proficient in Java : SAP PI Version : PI 7.1.

 

Or is there is any other way the same can be done.

 

As its a free text so the values are coming as paragraph/sentence so we cant use concatenate in graphical mapping as we are receiving all the free text in a single field. So we have to search for the whole free text and do the replace function as mentioned above. And post that will call mapping.

 

Requesting all Gurus for help in the same.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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