servicenow.community.soap
Class SoapProxy

java.lang.Object
  extended by servicenow.community.soap.SoapProxy

public class SoapProxy
extends java.lang.Object

This is a private class used by GlideTable to make SOAP calls to the instance. Its purpose is to hide the nuances of the SOAP protocol from the GlideTable class which deals only with simpler JDOM objects.

Author:
Giles Lewis

Constructor Summary
SoapProxy(GlideTable table)
           
 
Method Summary
 org.jdom2.Element callSoap(org.jdom2.Element content, java.lang.String responseElementName)
           
 java.lang.String readFully(java.io.InputStream input)
           
 java.lang.String readFully(java.io.Reader reader)
           
 void setURL(boolean dv)
           
protected static java.lang.String xmlToString(org.jdom2.Element element)
          Returns a JDOM element as an XML string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapProxy

public SoapProxy(GlideTable table)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setURL

public void setURL(boolean dv)
            throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

xmlToString

protected static java.lang.String xmlToString(org.jdom2.Element element)
Returns a JDOM element as an XML string. To be used only for debugging.

Returns:
XML text string

readFully

public java.lang.String readFully(java.io.Reader reader)
                           throws java.io.IOException
Throws:
java.io.IOException

readFully

public java.lang.String readFully(java.io.InputStream input)
                           throws java.io.IOException
Throws:
java.io.IOException

callSoap

public org.jdom2.Element callSoap(org.jdom2.Element content,
                                  java.lang.String responseElementName)
                           throws java.io.IOException
Throws:
java.io.IOException