com.avalara.avatax.services.address
Class AddressSvcLocator

java.lang.Object
  extended by org.apache.axis.client.Service
      extended by com.avalara.avatax.services.address.AddressSvcLocator
All Implemented Interfaces:
AddressSvc, java.io.Serializable, javax.naming.Referenceable, javax.xml.rpc.Service

public class AddressSvcLocator
extends org.apache.axis.client.Service
implements AddressSvc

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

See Also:
Serialized Form

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

AddressSvcLocator

public AddressSvcLocator()
Initializes a new instance of the class.


AddressSvcLocator

public AddressSvcLocator(org.apache.axis.EngineConfiguration config)
Initializes a new instance of the class.

Parameters:
config -

AddressSvcLocator

public AddressSvcLocator(java.lang.String wsdlLoc,
                         javax.xml.namespace.QName sName)
                  throws javax.xml.rpc.ServiceException
Initializes a new instance of the class.

Parameters:
wsdlLoc -
sName -
Throws:
javax.xml.rpc.ServiceException
Method Detail

getAddressSvcSoapAddress

public 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.

Specified by:
getAddressSvcSoapAddress in interface AddressSvc
Returns:
String representation of the default Address Service URL.

getAddressSvcSoapWSDDServiceName

public java.lang.String getAddressSvcSoapWSDDServiceName()
Gets the WSDD Service Name. This method is used internally by the adapter and not intended to be used by external implementation code.

Returns:
WSDD Service Name

setAddressSvcSoapWSDDServiceName

public 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.

Parameters:
name -

getAddressSvcSoap

public AddressSvcSoap getAddressSvcSoap()
                                 throws javax.xml.rpc.ServiceException
Gets the AddressService Proxy object (AddressSvcSoap) for the default URL.

Specified by:
getAddressSvcSoap in interface AddressSvc
Returns:
Address Service Proxy object.
Throws:
javax.xml.rpc.ServiceException
See Also:
AddressSvcSoapStub, AddressSvcSoap

getAddressSvcSoap

public AddressSvcSoap getAddressSvcSoap(java.net.URL portAddress)
                                 throws javax.xml.rpc.ServiceException
Gets the AddressService Proxy object (AddressSvcSoap) that communicates with Avalara's Address Web service at the URL specified.

Specified by:
getAddressSvcSoap in interface AddressSvc
Parameters:
portAddress -
Returns:
Address Service Proxy object.
Throws:
javax.xml.rpc.ServiceException
See Also:
AddressSvcSoapStub, AddressSvcSoap

setAddressSvcSoapEndpointAddress

public void setAddressSvcSoapEndpointAddress(java.lang.String address)
This method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
address -

getPort

public java.rmi.Remote getPort(java.lang.Class serviceEndpointInterface)
                        throws javax.xml.rpc.ServiceException
This method is used internally by the adapter and not intended to be used by external implementation code. For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown.

Specified by:
getPort in interface javax.xml.rpc.Service
Overrides:
getPort in class org.apache.axis.client.Service
Parameters:
serviceEndpointInterface -
Returns:
Throws:
javax.xml.rpc.ServiceException

getPort

public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
                               java.lang.Class serviceEndpointInterface)
                        throws javax.xml.rpc.ServiceException
This method is used internally by the adapter and not intended to be used by external implementation code. For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown.

Specified by:
getPort in interface javax.xml.rpc.Service
Overrides:
getPort in class org.apache.axis.client.Service
Parameters:
portName -
serviceEndpointInterface -
Returns:
Throws:
javax.xml.rpc.ServiceException

getServiceName

public javax.xml.namespace.QName getServiceName()
This method is used internally by the adapter and not intended to be used by external implementation code. For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown.

Specified by:
getServiceName in interface javax.xml.rpc.Service
Overrides:
getServiceName in class org.apache.axis.client.Service
Returns:
Service Name

getPorts

public java.util.Iterator getPorts()
This method is used internally by the adapter and not intended to be used by external implementation code.

Specified by:
getPorts in interface javax.xml.rpc.Service
Overrides:
getPorts in class org.apache.axis.client.Service
Returns:
Iterator over the collection of ports.

setEndpointAddress

public void setEndpointAddress(java.lang.String portName,
                               java.lang.String address)
                        throws javax.xml.rpc.ServiceException
This method is used internally by the adapter and not intended to be used by external implementation code. Set the endpoint address for the specified port name.

Parameters:
portName -
address -
Throws:
javax.xml.rpc.ServiceException

setEndpointAddress

public void setEndpointAddress(javax.xml.namespace.QName portName,
                               java.lang.String address)
                        throws javax.xml.rpc.ServiceException
This method is used internally by the adapter and not intended to be used by external implementation code. Set the endpoint address for the specified port name.

Parameters:
portName -
address -
Throws:
javax.xml.rpc.ServiceException