com.avalara.avatax.services.tax
Interface TaxSvc

All Superinterfaces:
javax.xml.rpc.Service
All Known Implementing Classes:
TaxSvcLocator

public interface TaxSvc
extends javax.xml.rpc.Service

In the the Axis scheme, interface implemented by the object (TaxSvcLocator) that wraps the actual functional Address Service proxy (TaxSvcSoapStub).

See Also:
TaxSvcLocator, TaxSvcSoap, TaxSvcSoapStub

Method Summary
 TaxSvcSoap getTaxSvcSoap()
          Get a proxy for Avalara's Tax Web Service (object implementing the TaxSvcSoap interface) using the default URL as coded in the class or programatically set.
 TaxSvcSoap getTaxSvcSoap(java.net.URL portAddress)
          Get a proxy for Avalara's Address Web Service using the specified URL.
 java.lang.String getTaxSvcSoapAddress()
          Retrieve as a String the default URL set for the Address Service to use.
 
Methods inherited from interface javax.xml.rpc.Service
createCall, createCall, createCall, createCall, getCalls, getHandlerRegistry, getPort, getPort, getPorts, getServiceName, getTypeMappingRegistry, getWSDLDocumentLocation
 

Method Detail

getTaxSvcSoapAddress

java.lang.String getTaxSvcSoapAddress()
Retrieve as a String the default URL set for the Address Service to use.

Returns:
Address service URL as a string.

getTaxSvcSoap

TaxSvcSoap getTaxSvcSoap()
                         throws javax.xml.rpc.ServiceException
Get a proxy for Avalara's Tax Web Service (object implementing the TaxSvcSoap interface) using the default URL as coded in the class or programatically set.
 Example:
 [Java]
 EngineConfiguration config = new FileProvider("avatax4j.wsdd");
 TaxSvcLocator taxSvcLoc = new TaxSvcLocator(config);

 TaxSvcSoap svc = taxSvcLoc.getTaxSvcSoap();

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

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

 IsAuthorizedResult result = svc.isAuthorized("GetTax,PostTax");

 

Returns:
Throws:
javax.xml.rpc.ServiceException

getTaxSvcSoap

TaxSvcSoap getTaxSvcSoap(java.net.URL portAddress)
                         throws javax.xml.rpc.ServiceException
Get a proxy for Avalara's Address Web Service using the specified URL.
 Example:
 [Java]
 EngineConfiguration config = new FileProvider("avatax4j.wsdd");
 TaxSvcLocator taxSvcLoc = new TaxSvcLocator(config);

 TaxSvcSoap svc = taxSvcLoc.getTaxSvcSoap(new URL("http://www.avalara.com/services/"));

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

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

 IsAuthorizedResult result = svc.isAuthorized("GetTax,PostTax");

 

Parameters:
portAddress -
Returns:
Throws:
javax.xml.rpc.ServiceException