ucar.ncx.soap
Class NcxSoapJAXMClient

java.lang.Object
  |
  +--ucar.ncx.soap.NcxSoapJAXMClient

public class NcxSoapJAXMClient
extends java.lang.Object

Core SOAP/HTTP messaging client for netcdf to xml transformation.


Constructor Summary
NcxSoapJAXMClient()
          No argument constructor
 
Method Summary
 org.w3c.dom.Document soapMessage(java.lang.String serviceURL, java.lang.String netcdfURL, boolean flag)
          Method to build and send the request SOAP message and obtain the returned XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcxSoapJAXMClient

public NcxSoapJAXMClient()
No argument constructor

Method Detail

soapMessage

public org.w3c.dom.Document soapMessage(java.lang.String serviceURL,
                                        java.lang.String netcdfURL,
                                        boolean flag)
                                 throws javax.xml.soap.SOAPException,
                                        java.net.MalformedURLException,
                                        java.io.IOException,
                                        javax.xml.transform.TransformerConfigurationException,
                                        javax.xml.transform.TransformerException
Method to build and send the request SOAP message and obtain the returned XML document. It relies on the JAXM package to build the SOAP request message (details of the message actual content are contained in the class NcxSoapMessageRequestFactory)

Parameters:
serviceURL - URL of SOAP service processing the request (messagerouter or servlet)
netcdfURL - URL of netcdf file to be processed
flag - flag set to false to use only generic netcdf schema (http://www.ucar.edu/schemas/netcdf), or true to use specific netcdf schemas as identified by the global attribute "conventions" in the netcdf file
Throws:
MalformedURLException
javax.xml.soap.SOAPException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
java.io.IOException