ScriptSOAPResp details

ScriptSOAPResp methods enable you to perform such tasks as getting data and metadata that is passed in to the endpoint and getting the endpoint name.

Table 1.
ScriptSOAPResp methods Purpose
getData() Gets byte[] data response.
getMetaData() Gets the metadata java.util.Map object that was passed in to the endpoint. This object contains some of the JMS or Kafka message headers.
getEndPointName) Gets the endpoint name.
setError(Exception e) Sets the error java.lang.Exception instance by analyzing the SOAP response.
The following sample code shows how a security header can be set by using the setupHeaders.
from org.jdom import Element
from org.jdom import Namespace

from java.util import HashMap
from java.util import ArrayList
from psdi.iface.util import XMLUtils
from javax.xml.namespace import QName

def setupHeaders(req):