You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How can I capture the body of a SOAP response using the order management extension?

I used this code here but it is not working yet:

import oracle.apps.scm.doo.common.extensions.ValidationException;

import oracle.apps.scm.doo.common.extensions.Message;


String accountId = header.getAttribute("BillToCustomerIdentifier");

String sourceTransactionIdentifier = header.getAttribute("SourceTransactionIdentifier");

String sourceTransactionSystem = header.getAttribute("SourceTransactionSystem");

String currencyCode = header.getAttribute("TransactionalCurrencyCode")

List<Message> messages = new ArrayList<Message>();

def serviceInvoker = context.getServiceInvoker();

def varMessage = "";



def totals = header.getAttribute("OrderTotals");

String totalAmount;

while (totals.hasNext()) {

    def total = totals.next();

    totalAmount = total.getAttribute("TotalAmount");

}


String payload =

                  "<cred:CreditCheckRequest xmlns:cred=\"http://www.creditCorpCheck.com\">" +

                                "<HOLD_CODE>HOLD_FOR_CREDIT_CHECK</HOLD_CODE>" +

                                "<SourceTransactionIdentifier>"+ sourceTransactionIdentifier +"</SourceTransactionIdentifier>" +

                                "<SourceTransactionSystem>"+ sourceTransactionSystem +"</SourceTransactionSystem>" +

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!