|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.client.Service
com.avalara.avatax.services.tax.TaxSvcLocator
public class TaxSvcLocator
Class that implements the TaxSvc
interface and is used to create a local proxy
(interface
) to interact with Avalara's Tax Web Service.
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");
Constructor Summary | |
---|---|
TaxSvcLocator()
Initializes a new instance of the class. |
|
TaxSvcLocator(org.apache.axis.EngineConfiguration config)
Initializes a new instance of the class. |
|
TaxSvcLocator(java.lang.String wsdlLoc,
javax.xml.namespace.QName sName)
Initializes a new instance of the class. |
Method Summary | |
---|---|
java.rmi.Remote |
getPort(java.lang.Class serviceEndpointInterface)
This method is used internally by the adapter and not intended to be used by external implementation code. |
java.rmi.Remote |
getPort(javax.xml.namespace.QName portName,
java.lang.Class serviceEndpointInterface)
This method is used internally by the adapter and not intended to be used by external implementation code. |
java.util.Iterator |
getPorts()
|
javax.xml.namespace.QName |
getServiceName()
This method is used internally by the adapter and not intended to be used by external implementation code. |
TaxSvcSoap |
getTaxSvcSoap()
Gets the AddressService Proxy object ( TaxSvcSoap ) that communicates
with Avalara's Tax Web service at default URL. |
TaxSvcSoap |
getTaxSvcSoap(java.net.URL portAddress)
Gets the AddressService Proxy object ( TaxSvcSoap ) that communicates
with Avalara's Tax Web service at the URL specified. |
java.lang.String |
getTaxSvcSoapAddress()
Gets the current default URL that any tax service proxy (implementing TaxSvcSoap interface)
created by this object will use to find a corresponding Tax Web Service
to contact. |
java.lang.String |
getTaxSvcSoapWSDDServiceName()
Gets the WSDD Service Name; This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setEndpointAddress(javax.xml.namespace.QName portName,
java.lang.String address)
This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setEndpointAddress(java.lang.String portName,
java.lang.String address)
This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setTaxSvcSoapEndpointAddress(java.lang.String address)
This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setTaxSvcSoapWSDDServiceName(java.lang.String name)
Sets the WSDD Service Name; This method is used internally by the adapter and not intended to be used by external implementation code. |
Methods inherited from class org.apache.axis.client.Service |
---|
createCall, createCall, createCall, createCall, getCacheWSDL, getCall, getCalls, getEngine, getHandlerRegistry, getMaintainSession, getPort, getReference, getTypeMappingRegistry, getWSDLDocumentLocation, getWSDLParser, setCacheWSDL, setEngine, setEngineConfiguration, setMaintainSession, setTypeMappingRegistry, setTypeMappingVersion |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.rpc.Service |
---|
createCall, createCall, createCall, createCall, getCalls, getHandlerRegistry, getTypeMappingRegistry, getWSDLDocumentLocation |
Constructor Detail |
---|
public TaxSvcLocator()
public TaxSvcLocator(org.apache.axis.EngineConfiguration config)
config
- public TaxSvcLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException
wsdlLoc
- sName
-
javax.xml.rpc.ServiceException
Method Detail |
---|
public java.lang.String getTaxSvcSoapAddress()
TaxSvcSoap
interface)
created by this object will use to find a corresponding Tax Web Service
to contact.
getTaxSvcSoapAddress
in interface TaxSvc
public java.lang.String getTaxSvcSoapWSDDServiceName()
public void setTaxSvcSoapWSDDServiceName(java.lang.String name)
name
- public TaxSvcSoap getTaxSvcSoap() throws javax.xml.rpc.ServiceException
TaxSvcSoap
) that communicates
with Avalara's Tax Web service at default URL.
getTaxSvcSoap
in interface TaxSvc
javax.xml.rpc.ServiceException
public TaxSvcSoap getTaxSvcSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException
TaxSvcSoap
) that communicates
with Avalara's Tax Web service at the URL specified.
getTaxSvcSoap
in interface TaxSvc
portAddress
-
javax.xml.rpc.ServiceException
public void setTaxSvcSoapEndpointAddress(java.lang.String address)
address
- public java.rmi.Remote getPort(java.lang.Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException
getPort
in interface javax.xml.rpc.Service
getPort
in class org.apache.axis.client.Service
serviceEndpointInterface
-
javax.xml.rpc.ServiceException
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, java.lang.Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException
getPort
in interface javax.xml.rpc.Service
getPort
in class org.apache.axis.client.Service
portName
- serviceEndpointInterface
-
javax.xml.rpc.ServiceException
public javax.xml.namespace.QName getServiceName()
getServiceName
in interface javax.xml.rpc.Service
getServiceName
in class org.apache.axis.client.Service
public java.util.Iterator getPorts()
getPorts
in interface javax.xml.rpc.Service
getPorts
in class org.apache.axis.client.Service
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException
portName
- address
-
javax.xml.rpc.ServiceException
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException
portName
- address
-
javax.xml.rpc.ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |