| java.lang.Object wfxml.Basic
Basic | public class Basic (Code) | | Utility methods for WfXML tests.
author: Dirk Schnelle |
ASAP_NS | final public static String ASAP_NS(Code) | | The URI of the ASAP version used.
|
WFXML_NS | final public static String WFXML_NS(Code) | | The URI of the WfXML version used.
|
WFXML_SERVLET | final public static String WFXML_SERVLET(Code) | | URL of the WfXML servlet.
|
checkNoFault | static void checkNoFault(SOAPMessage message) throws SOAPException(Code) | | Checks, if the given message does not contain a fault message.
Parameters: message - the message to inspect. throws: SOAPException - Error in the SOAP message. |
fillRequestHeadet | static void fillRequestHeadet(SOAPMessage message, String receiver, String sender, String id) throws SOAPException(Code) | | Fills all detail data in the request header.
Parameters: message - the message to manipulate. Parameters: receiver - receiver key Parameters: sender - sender key Parameters: id - user defined id throws: SOAPException - error manipulating the SOAP message. |
getAsapErrorCode | static String getAsapErrorCode(SOAPMessage message) throws SOAPException(Code) | | Retrieves the ASAP specific error code.
Parameters: message - the response message. ASAP specific error code. throws: SOAPException - Error in the SOAP message. |
getBaseUrl | static String getBaseUrl(String resource)(Code) | | Utility method to create a base URL for the given resource.
Parameters: resource - the target resource. base url. |
getChildTextContent | static String getChildTextContent(SOAPElement element, String key) throws SOAPException(Code) | | Retrieves the text content of the child node with the specified name.
Parameters: element - the parent node. Parameters: key - name of the searched child node. text content, or null if there is no such child node. throws: SOAPException - error inspecting the SOAP message. |
getHeaderValue | static String getHeaderValue(SOAPMessage message, String key) throws SOAPException(Code) | | Retrieves the given key from the header of the given message.
Parameters: message - the message to inspect. Parameters: key - the key to retrieve. value of the key , null if there is no value. throws: SOAPException - error in the SOAP message. |
|
|