nl.knowledgeplaza.soaptools.client
Class SoapClient

java.lang.Object
  extended by nl.knowledgeplaza.soaptools.client.SoapClient

public class SoapClient
extends Object

SoapClient is a client for invoking soap operations The invoke method should be thread safe so we do not need pooling!

Author:
S. Pluym @ Knowlegeplaza

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
SoapClient(String WSDLUrl)
           
 
Method Summary
 String getEndPointURL()
           
 String getPassword()
           
 String getUsername()
           
 org.dom4j.Document invoke(String pOperation, org.dom4j.Document param)
          Invokes the operation
 boolean isValidate()
           
 void setPassword(String pPassword)
           
 void setUsername(String pUsername)
           
 void setValidate(boolean pValidate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

SoapClient

public SoapClient(String WSDLUrl)
Parameters:
WSDLUrl - uri to WSDL file
Method Detail

getUsername

public String getUsername()
Returns:
the username

setUsername

public void setUsername(String pUsername)
Parameters:
pUsername - the username to set

getPassword

public String getPassword()
Returns:
the password

setPassword

public void setPassword(String pPassword)
Parameters:
pPassword - the password to set

isValidate

public boolean isValidate()
Returns:
the validate

setValidate

public void setValidate(boolean pValidate)
Parameters:
pValidate - the validate to set

invoke

public org.dom4j.Document invoke(String pOperation,
                                 org.dom4j.Document param)
                          throws SoapClientException
Invokes the operation

Parameters:
pOperation - operation name without namespace
param - parameters for the operation
Returns:
This method returns the SOAP body of the response
Throws:
SoapClientException

getEndPointURL

public String getEndPointURL()


Copyright © 2013 KnowledgePlaza. All Rights Reserved.