com.avalara.avatax.services.base
Class BaseSvcSoapStub

java.lang.Object
  extended by org.apache.axis.client.Stub
      extended by com.avalara.avatax.services.base.BaseSvcSoapStub
All Implemented Interfaces:
BaseSvcSoap, java.rmi.Remote, javax.xml.rpc.Stub
Direct Known Subclasses:
AddressSvcSoapStub, TaxSvcSoapStub

public class BaseSvcSoapStub
extends org.apache.axis.client.Stub
implements BaseSvcSoap

Base class for web service interface classes -- Not creatable; Create instead AddressSvcSoapStub or TaxSvcSoapStub objects via an Axis Service proxy factory class: (@link com.avalara.avatax.services.address.AddressSvc} or TaxSvc.

 Example:
 [Java]
 EngineConfiguration config = new FileProvider("avatax4j.wsdd");

 AddressSvcLocator svcLoc = new AddressSvcLocator(config);
 AddressSvcSoap svc = svcLoc.getAddressSvcSoap(new URL("http://www.avalara.com/services/"));

 // Set the profile
 Profile profile = new Profile();
 profile.setClient("AddressSvcTest,4.0.0.0");
 svc.setProfile(profile);

 // Set security
 Security security = new Security();
 security.setAccount("account");
 security.setLicense("license number");
 svc.setSecurity(security);

 PingResult result = svc.ping("");
 


Field Summary
static java.lang.String PASSWORD_TEXT_TYPE
           
static java.lang.String WSSE_NAMESPACE
           
 
Fields inherited from interface javax.xml.rpc.Stub
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, USERNAME_PROPERTY
 
Method Summary
 Profile getProfile()
          Provides access to the request profile data; Should be set prior to making a request.
 Security getSecurity()
          Provides access to Security details (e.g., account name and license #).
 void setProfile(Profile profile)
          Provides access to the request profile data; Should be set prior to making a request.
 void setSecurity(Security value)
          Provides access to Security details (e.g., account name and license #).
 
Methods inherited from class org.apache.axis.client.Stub
_createCall, _getCall, _getProperty, _getPropertyNames, _getService, _setProperty, addAttachment, clearAttachments, clearHeaders, extractAttachments, getAttachments, getHeader, getHeaders, getPassword, getPortName, getResponseHeader, getResponseHeaders, getTimeout, getUsername, removeProperty, setHeader, setHeader, setMaintainSession, setPassword, setPortName, setPortName, setTimeout, setUsername
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSSE_NAMESPACE

public static final java.lang.String WSSE_NAMESPACE
See Also:
Constant Field Values

PASSWORD_TEXT_TYPE

public static final java.lang.String PASSWORD_TEXT_TYPE
See Also:
Constant Field Values
Method Detail

setProfile

public void setProfile(Profile profile)
                throws javax.xml.soap.SOAPException
Provides access to the request profile data; Should be set prior to making a request.
 Example:
 [Java]
 // Set the profile
 Profile profile = new Profile();
 profile.setClient("AddressSvcTest,4.0.0.0");
 svc.setProfile(profile);
 

Specified by:
setProfile in interface BaseSvcSoap
Parameters:
profile -
Throws:
javax.xml.soap.SOAPException

getProfile

public Profile getProfile()
Provides access to the request profile data; Should be set prior to making a request.
 Example:
 [Java]
 // Set the profile
 Profile profile = new Profile();
 profile.setClient("AddressSvcTest,4.0.0.0");
 svc.setProfile(profile);
 

Specified by:
getProfile in interface BaseSvcSoap
Returns:
Profile object

setSecurity

public void setSecurity(Security value)
Provides access to Security details (e.g., account name and license #).
 Example:
 [Java]
 // Set security
 Security security = new Security();
 security.setAccount("account");
 security.setLicense("license number");
 svc.setSecurity(security);

 System.out.println(svc.getSecurity().getAccount());
 System.out.println(svc.getSecurity().getLicense());

 PingResult result = svc.ping("");
 

Specified by:
setSecurity in interface BaseSvcSoap
Parameters:
value -

getSecurity

public Security getSecurity()
Provides access to Security details (e.g., account name and license #).
 Example:
 [Java]
 // Set security
 Security security = new Security();
 security.setAccount("account");
 security.setLicense("license number");
 svc.setSecurity(security);

 System.out.println(svc.getSecurity().getAccount());
 System.out.println(svc.getSecurity().getLicense());

 PingResult result = svc.ping("");
 

Specified by:
getSecurity in interface BaseSvcSoap
Returns:
Security object.