Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82362

Call ExportMapping from Java to get the XML result

$
0
0

I have a situation in which I need to create a single UI for the functional administrator in which he needs to see the real XML that was sent to an external web service. Currently the only way I know how to get that XML is by setting the web service log level to Trace. But this is not sufficient for my customer. So I need a way to capture the XML. My thought is to call the ExportMapping directly from Java. But I can't seem to fund the API in the runtime to call the export mapping. 

Does anyone have snappit on how to do this?

Update:

I found the API I couldn't find :)

The api to use is: 

Core.integration().exportToStream(context, mapping, source, false)

This executes the mapping and returns the XML in a stream. Then you can convert the stream into a string if you want.


Viewing all articles
Browse latest Browse all 82362

Trending Articles



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