My Oracle Support Banner

How To Consume SOAP Response Using Groovy In Fusion (Doc ID 2343438.1)

Last updated on JANUARY 22, 2019

Applies to:

Oracle Fusion Order Management Cloud Service - Version and later
Information in this document applies to any platform.


On : version, Manage Orders

In R13 instance user can write extension for Order Management in groovy code.
 How to consume SOAP response using groovy in Fusion?

def serviceInvoker = context.getServiceInvoker();
String payLoad = ""+
"<typ:so_number>" + orderNumber + "" +

if(orderType != null && orderType.contains("MC-MACHINES")) {

def responseBody = serviceInvoker.invokeSoapService("SampleTestWebService", payLoad).getSoapBody();
def msg = responseBody.getChildElements("result").next().getValue();


I am getting the response Body as:


User would like to pull the value for tag result and display on the screen.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.