VirtueMart
3.2.14.9808
|
Public Member Functions | |
__construct ($configurationName= 'Default') | |
isAuthorized ($operations) | |
ping ($message= '') | |
validate ($validateRequest) | |
Public Member Functions inherited from AvalaraSoapClient | |
__getLastRequest () | |
__getLastResponse () | |
__getLastRequestHeaders () | |
__getLastResponseHeaders () | |
Static Protected Attributes | |
static | $classmap |
Static Private Attributes | |
static | $servicePath = '/Address/AddressSvc.asmx' |
Additional Inherited Members | |
Protected Attributes inherited from AvalaraSoapClient | |
$client | |
AddressServiceSoap::__construct | ( | $configurationName = 'Default' | ) |
Construct a proxy for Avalara's Address Web Service using the default URL as coded in the class or programatically set.
Example:
$port = new AddressServiceSoap(); $port->ping();
AddressServiceSoap::isAuthorized | ( | $operations | ) |
Checks authentication of and authorization to one or more operations on the service.
This operation allows pre-authorization checking of any or all operations. It will return a comma delimited set of operation names which will be all or a subset of the requested operation names. For security, it will never return operation names other than those requested (no phishing allowed).
Example:
isAuthorized("GetTax,PostTax")
string | $operations | a comma-delimited list of operation names |
SoapFault |
AddressServiceSoap::ping | ( | $message = '' | ) |
Verifies connectivity to the web service and returns version information about the service.
NOTE:This replaces TestConnection and is available on every service.
string | $message | for future use |
SoapFault |
AddressServiceSoap::validate | ( | $validateRequest | ) |
Validates an address and returns a normalized address or error. ValidAddress objects in a ValidateResult object.
Takes an Address, an optional TextCase property that determines the casing applied to a validated address. It defaults to TextCase::$Default. Example:
$port = new AddressServiceSoap();
$address = new Address(); $address->setLine1("900 Winslow Way"); $address->setLine2("Suite 130"); $address->setCity("Bainbridge Is"); $address->setRegion("WA"); $address->setPostalCode("98110-2450");
$result = $port->validate(new ValidateRequest($address,TextCase::$Upper));
ValidateRequest |
SoapFault |
|
staticprotected |
|
staticprivate |