cancel
Showing results for 
Search instead for 
Did you mean: 

Non XML Output

Former Member
0 Kudos

Hi,

We have a scenario whereby we are performing a HTTP post to a service. The problem is that the service expects a raw/plain text body. So we need to remove the XML and just out put the content of one field.

I know that it is possible to do this using XSLT however unfortunately the string that I want to output contains special characters and hence the XSLT falls over everytime it is executed with some of those characters included in the payload.

I am getting the feeling that the only way that this is going to be possible will be via a Java mapping. I have done a little research but have thus far found little to help.

Could someone maybe provide some pointers on how this would be possible using a java mapping. To output nothing but plain/raw data?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Is there anyone out there that can provide an example of how you would output a non-xml stream in a java mapping? So to take the input stream, extract the content from one of the elements and write it to the output stream as a plain text?

Thanks

former_member223322
Active Participant
0 Kudos

Hi,

Check the below blog. This will give you an idea.

https://weblogs.sdn.sap.com/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]

Also check the below article.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79...

Hope this helps!

~Vaas

Answers (0)