|
|||||||||
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.address.AddressSvcLocator
public class AddressSvcLocator
Class that implements the AddressSvc
interface and is used to create a local proxy
(interface
) to interact with Avalara's Address Web Service.
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("");
Constructor Summary | |
---|---|
AddressSvcLocator()
Initializes a new instance of the class. |
|
AddressSvcLocator(org.apache.axis.EngineConfiguration config)
Initializes a new instance of the class. |
|
AddressSvcLocator(java.lang.String wsdlLoc,
javax.xml.namespace.QName sName)
Initializes a new instance of the class. |
Method Summary | |
---|---|
AddressSvcSoap |
getAddressSvcSoap()
Gets the AddressService Proxy object ( AddressSvcSoap ) for the default
URL. |
AddressSvcSoap |
getAddressSvcSoap(java.net.URL portAddress)
Gets the AddressService Proxy object ( AddressSvcSoap ) that communicates
with Avalara's Address Web service at the URL specified. |
java.lang.String |
getAddressSvcSoapAddress()
Gets the current default URL that any address service proxy (implementing AddressSvcSoap interface)
created by this object will use to find a corresponding Address Web Service
to contact. |
java.lang.String |
getAddressSvcSoapWSDDServiceName()
Gets the WSDD Service Name. |
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()
This method is used internally by the adapter and not intended to be used by external implementation code. |
javax.xml.namespace.QName |
getServiceName()
This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setAddressSvcSoapEndpointAddress(java.lang.String address)
This method is used internally by the adapter and not intended to be used by external implementation code. |
void |
setAddressSvcSoapWSDDServiceName(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. |
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. |
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 AddressSvcLocator()
public AddressSvcLocator(org.apache.axis.EngineConfiguration config)
config
- public AddressSvcLocator(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 getAddressSvcSoapAddress()
AddressSvcSoap
interface)
created by this object will use to find a corresponding Address Web Service
to contact.
getAddressSvcSoapAddress
in interface AddressSvc
public java.lang.String getAddressSvcSoapWSDDServiceName()
public void setAddressSvcSoapWSDDServiceName(java.lang.String name)
name
- public AddressSvcSoap getAddressSvcSoap() throws javax.xml.rpc.ServiceException
AddressSvcSoap
) for the default
URL.
getAddressSvcSoap
in interface AddressSvc
javax.xml.rpc.ServiceException
AddressSvcSoapStub
,
AddressSvcSoap
public AddressSvcSoap getAddressSvcSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException
AddressSvcSoap
) that communicates
with Avalara's Address Web service at the URL specified.
getAddressSvcSoap
in interface AddressSvc
portAddress
-
javax.xml.rpc.ServiceException
AddressSvcSoapStub
,
AddressSvcSoap
public void setAddressSvcSoapEndpointAddress(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 |