Recently we stuck while doing transformation of String to XML using XQuery in OSB. We can any how achieve it via XQuery but here I am sharing our simplest way to do that.
Consider the scenario where you get input in String format in message flow of proxy and you want to convert it into XML format. This we can achieve using Xquery function fn-bea:inlinedXML(“String”) in Oracle OSB.
To convert XML into String you can use Xquery function fn-bea:serialize(XML) in Oracle OSB.
A working example you can find in my Github account in below url :
In this exmple we use globle weather check wsdl as input and call “GetWeather” operation. First we conver XML into string and then we convert string into XML format to call business service.