com.raritantechnologies.federated.SOAP
Class SOAPUtils

java.lang.Object
  extended bycom.raritantechnologies.federated.SOAP.SOAPUtils

public class SOAPUtils
extends java.lang.Object

Contains some basic SOAP utility methods.

<SOAPRequest targetURI="targetURI" methodName="methodName" namespaceURI="namespaceURI" userName="userName" password="password" > <SOAPEnvelope> <![CDATA[ the soap envelope ]]> </SOAPEnvelope> <XSLTransform> <![CDATA[ the XSL transform ]]> </XSLTransform> <SOAPResponseProcess dataPath="[ xml data path ]" outputTo="result field" /> </SOAPRequest>


Constructor Summary
SOAPUtils()
           
 
Method Summary
static void addMessageElements(javax.xml.soap.SOAPElement rootElement, java.util.ArrayList messageElementTrees, java.lang.String valueAttrib)
          add SOAP Message elements based on template supplied from a list of TreeRoot objects.
static void createMessage(javax.xml.soap.SOAPElement rootElement, java.lang.String elementPath, java.lang.String message)
          Creates a SOAP Message within the rootElement at the path specified.
static org.w3c.dom.Document executeSOAPRequest(org.w3c.dom.Document fromXML, java.lang.String targetURI, java.lang.String methodName, java.lang.String namespaceURI, ILoginInfo userInfo)
           
static org.w3c.dom.Document executeSOAPRequest(org.w3c.dom.Document fromXML, java.lang.String targetURI, java.lang.String methodName, java.lang.String namespaceURI, SOAPResponseProcess[] responseProcesses, java.lang.String xslTransform, ILoginInfo userInfo)
           
static org.w3c.dom.Document executeSOAPRequest(java.io.Reader SOAPRequestXML)
           
static org.w3c.dom.Document executeSOAPRequest(java.io.Reader xmlData, java.lang.String targetURI, java.lang.String methodName, java.lang.String namespaceURI, SOAPResponseProcess[] responseProcesses, java.lang.String xslTransform, ILoginInfo userInfo)
           
static org.w3c.dom.Document executeSOAPRequest(java.lang.String soapRequestFile)
           
static java.lang.String getFormattedData(MessageElement meElem, java.lang.String path, java.lang.String delimiter, java.lang.String template)
          Extract data from SOAP Elements into a patterned String.
static java.lang.String[] getNestedData(MessageElement meElem, java.lang.String path)
          Returns the Set of Strings contained found at the XPath location given by the path parameter within a SOAP MessageElement.
static IResultSet getNestedResults(MessageElement meElem, java.lang.String elementPath, java.util.Map fieldPathMap)
          Returns an RTI ResultSet from a set of nested MessageElements.
static java.lang.String removeUnusedTemplates(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPUtils

public SOAPUtils()
Method Detail

executeSOAPRequest

public static org.w3c.dom.Document executeSOAPRequest(java.lang.String soapRequestFile)

executeSOAPRequest

public static org.w3c.dom.Document executeSOAPRequest(java.io.Reader SOAPRequestXML)

executeSOAPRequest

public static org.w3c.dom.Document executeSOAPRequest(java.io.Reader xmlData,
                                                      java.lang.String targetURI,
                                                      java.lang.String methodName,
                                                      java.lang.String namespaceURI,
                                                      SOAPResponseProcess[] responseProcesses,
                                                      java.lang.String xslTransform,
                                                      ILoginInfo userInfo)

executeSOAPRequest

public static org.w3c.dom.Document executeSOAPRequest(org.w3c.dom.Document fromXML,
                                                      java.lang.String targetURI,
                                                      java.lang.String methodName,
                                                      java.lang.String namespaceURI,
                                                      ILoginInfo userInfo)

executeSOAPRequest

public static org.w3c.dom.Document executeSOAPRequest(org.w3c.dom.Document fromXML,
                                                      java.lang.String targetURI,
                                                      java.lang.String methodName,
                                                      java.lang.String namespaceURI,
                                                      SOAPResponseProcess[] responseProcesses,
                                                      java.lang.String xslTransform,
                                                      ILoginInfo userInfo)

getFormattedData

public static java.lang.String getFormattedData(MessageElement meElem,
                                                java.lang.String path,
                                                java.lang.String delimiter,
                                                java.lang.String template)
Extract data from SOAP Elements into a patterned String. returns string with data from path elements child/grandchild/greatgrandchild... template uses {} placeholders.


removeUnusedTemplates

public static java.lang.String removeUnusedTemplates(java.lang.String value)

getNestedData

public static java.lang.String[] getNestedData(MessageElement meElem,
                                               java.lang.String path)
Returns the Set of Strings contained found at the XPath location given by the path parameter within a SOAP MessageElement.


addMessageElements

public static void addMessageElements(javax.xml.soap.SOAPElement rootElement,
                                      java.util.ArrayList messageElementTrees,
                                      java.lang.String valueAttrib)
add SOAP Message elements based on template supplied from a list of TreeRoot objects.


getNestedResults

public static IResultSet getNestedResults(MessageElement meElem,
                                          java.lang.String elementPath,
                                          java.util.Map fieldPathMap)
Returns an RTI ResultSet from a set of nested MessageElements.

Parameters:
meElem - The SOAP MessageElement containing the results.
elementPath - Relative path to the result elements.
fieldPathMap - Map of result fieldID to xPath of data within result element.

createMessage

public static void createMessage(javax.xml.soap.SOAPElement rootElement,
                                 java.lang.String elementPath,
                                 java.lang.String message)
Creates a SOAP Message within the rootElement at the path specified.