HPSearch

cgl.hpsearch.common
Class SOAPClient

java.lang.Object
  extended bycgl.hpsearch.common.SOAPClient

public class SOAPClient
extends Object

SOAPClient uses Apache AXIS to invoke a web-service using SOAP. Modified from Apache AXIS samples samples.client.DynamicInvoker

Acknowledgement: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)."

This sample shows how to use Axis for completely dynamic invocations as it is completely stubless execution. It supports both doc/lit and rpc/encoded services. But this sample does not support complex types (it could if there was defined a to encode complex values as command line arguments).

Author:
Davanum Srinivas (dims@yahoo.com)

Constructor Summary
SOAPClient()
           
 
Method Summary
 String describeWSDL()
           
 String getWSDL()
          Returns the location of the currently parsed WSDL
 Object[] invoke(String operation, String[] args)
           
 void setCallTimeout(Integer timeout)
           
 boolean setWSDL(String wsdl)
          Sets the WSDL location and parses the WSDL.
 String show()
          Prints out the ports, bindings, operations, the parameter for each operation and the return type from the service description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPClient

public SOAPClient()
Method Detail

setWSDL

public boolean setWSDL(String wsdl)
Sets the WSDL location and parses the WSDL. This MUST be done before an operation can be invoked.

Parameters:
wsdl - - The location of the services' WSDL
Returns:
true if parsing was successful, false otherwise.

getWSDL

public String getWSDL()
Returns the location of the currently parsed WSDL

Returns:
- The URI of the currently parsed WSDL

setCallTimeout

public final void setCallTimeout(Integer timeout)

invoke

public Object[] invoke(String operation,
                       String[] args)
                throws Exception
Throws:
Exception

show

public String show()
Prints out the ports, bindings, operations, the parameter for each operation and the return type from the service description


describeWSDL

public String describeWSDL()

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006