com.avalara.avatax.services.base
Interface BaseSvcSoap

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
AddressSvcSoap, TaxSvcSoap
All Known Implementing Classes:
AddressSvcSoapStub, BaseSvcSoapStub, TaxSvcSoapStub

public interface BaseSvcSoap
extends java.rmi.Remote

Interface for the basic Web service functionality shared by the Address and Tax Service -- essentially setting the connection and authentication information necessary for both service proxies to connect to Avalara's Web services.

 Example:
 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("");
 


Method Summary
 Profile getProfile()
          Get the Profile information for the service.
 Security getSecurity()
          Get the authentication information via a Security object.
 void setProfile(Profile profile)
          Set the Profile information for the service.
 void setSecurity(Security security)
          Set the authentication information via a Security object.
 

Method Detail

setProfile

void setProfile(Profile profile)
                throws javax.xml.soap.SOAPException
Set the Profile information for the service.

Parameters:
profile -
Throws:
javax.xml.soap.SOAPException

getProfile

Profile getProfile()
Get the Profile information for the service.

Returns:
Profile object

setSecurity

void setSecurity(Security security)
Set the authentication information via a Security object.

Parameters:
security -

getSecurity

Security getSecurity()
Get the authentication information via a Security object.

Returns:
Security