ucar.ncx.soap
Class NcxSoapMessageShellClient

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

public class NcxSoapMessageShellClient
extends java.lang.Object

SOAP/HTTP messaging client for netcdf to xml transformation. It can be run from the command line or invoked through its API. Given the necessary request parameters, it will build an xml document of the form:

<ncx xmlns="urn:ncx-message" url="........" flag="....."/>
, wrap it within a SOAP envelope, and send it to a destination url (that can be either an Apache-SOAP message router or a SOAP-aware servlet). The returned xml document containing the netcdf metadata can either be written to the screen (deafult) or to a specified local file.


Constructor Summary
NcxSoapMessageShellClient()
          No argument constructor
NcxSoapMessageShellClient(boolean jaxm)
          Constuctor with optional flag for client-side JAXM processing
 
Method Summary
static void main(java.lang.String[] args)
          Method for command-line run.
 void process(java.lang.String netcdfURL, java.lang.String xmlFile, boolean flag, java.lang.String serviceURL)
          Main processing method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcxSoapMessageShellClient

public NcxSoapMessageShellClient()
No argument constructor


NcxSoapMessageShellClient

public NcxSoapMessageShellClient(boolean jaxm)
Constuctor with optional flag for client-side JAXM processing

Parameters:
jaxm - set to true to enable client-side JAXM processing
Method Detail

main

public static void main(java.lang.String[] args)
Method for command-line run. USAGE: java ucar.ncx.soap.NcxSoapMessageClient -in:netcdfURL -service:serviceURL [-out:xmlfile] [-flag:true|false] [-jaxm], where:


process

public void process(java.lang.String netcdfURL,
                    java.lang.String xmlFile,
                    boolean flag,
                    java.lang.String serviceURL)
Main processing method

Parameters:
netcdfURL - URL of netcdf file to be processed
serviceURL - URL of SOAP service processing the request (messagerouter or servlet)
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