Interface ISoapMessageContext
- All Superinterfaces:
IPortalContext
,Serializable
- All Known Implementing Classes:
SoapMessageContext
Context interface for manipulating SOAP messages
- Since:
- 9.5
- Author:
- Radu Batori
-
Method Summary
Modifier and TypeMethodDescriptionaddHeader
(QualifiedName header) Add a SOAP headergetHeader
(QualifiedName headerName) Get a SOAP header by nameGet aCollection
of the SOAP headersGet the operation nameGet the SOAP service definitionGet the XML body as stringvoid
removeHeader
(IXmlElementContext header) Remove a SOAP headervoid
setNamespace
(String prefix, String namespace) Set an XML namespacevoid
setSoapBody
(String xmlBody) Replace the current XML SOAP body with the string providedMethods inherited from interface com.aquima.interactions.portal.IPortalContext
forModule, forModule, getActiveInstance, getApplicationMode, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getCurrentFlow, getCurrentLanguage, getDebugger, getDocumentEngine, getElementComposer, getExpressionParser, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getMappingComposer, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProfile, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, pushActiveInstance, restore
-
Method Details
-
getHeaders
Collection<IXmlElementContext> getHeaders()Get aCollection
of the SOAP headers- Returns:
- The SOAP header collection
-
getHeader
Get a SOAP header by name- Parameters:
headerName
- The name of the SOAP header to be returned- Returns:
- The SOAP header if found or null otherwise
-
addHeader
Add a SOAP header- Parameters:
header
- The name of the header to be added- Returns:
- The added header
-
removeHeader
Remove a SOAP header- Parameters:
header
- The header to be removed
-
setNamespace
Set an XML namespace- Parameters:
prefix
- The namespace prefixnamespace
- The actual namespace
-
getSoapBody
String getSoapBody()Get the XML body as string- Returns:
- The XML body
-
setSoapBody
Replace the current XML SOAP body with the string provided- Parameters:
xmlBody
- The new XML body- Throws:
XmlParseException
- when the parsing of the xmlBody fails
-
getOperationName
String getOperationName()Get the operation name- Returns:
- the operation name used for this message context
-
getServiceDefinition
ISoapServiceDefinition getServiceDefinition()Get the SOAP service definition- Returns:
- The service definition
-