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 11.13.17.09.0 and later
Information in this document applies to any platform.

Goal

On : 11.13.17.09.0 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:


SUCCESS



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

Solution

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
Goal
Solution


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