ucar.ncx.soap
Class NcxSoapRpcClient

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

public class NcxSoapRpcClient
extends java.lang.Object

Core Apache SOAP-RPC client for netcdf to xml transformation. When invoked, it builds a call to a given service rpcrouter, which will result in the invocation on the server of the method "ncx" of the service deployed with service-id "urn:ncx-rpc". It returns an XML document which then need to be administered by the invoking application.


Field Summary
static java.lang.String serviceId
          The id of the remote service
static java.lang.String serviceMethod
          The remote method that will be called on the service
 
Constructor Summary
NcxSoapRpcClient()
          No argument constructor
 
Method Summary
 org.w3c.dom.Element soapCall(java.lang.String serviceURL, java.lang.String netcdfURL, boolean flag)
          Method to build and invoke the SOAP RPC call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceId

public static final java.lang.String serviceId
The id of the remote service

See Also:
Constant Field Values

serviceMethod

public static final java.lang.String serviceMethod
The remote method that will be called on the service

See Also:
Constant Field Values
Constructor Detail

NcxSoapRpcClient

public NcxSoapRpcClient()
No argument constructor

Method Detail

soapCall

public org.w3c.dom.Element soapCall(java.lang.String serviceURL,
                                    java.lang.String netcdfURL,
                                    boolean flag)
                             throws org.apache.soap.SOAPException,
                                    java.net.MalformedURLException
Method to build and invoke the SOAP RPC call

Parameters:
serviceURL - the URL of the remote Apache SOAP rpcrouter
netcdfURL - the URL of the netcdf file to be processed
flag - set to true for specific netcdf conventions, false for generic netcdf schema
Throws:
org.apache.soap.SOAPException
MalformedURLException