|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.client.Stub
com.avalara.avatax.services.base.BaseSvcSoapStub
public class BaseSvcSoapStub
Base class for web service interface classes -- Not creatable;
Create instead AddressSvcSoapStub
or
TaxSvcSoapStub
objects via an Axis Service proxy
factory class: (@link com.avalara.avatax.services.address.AddressSvc} or
TaxSvc
.
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("");
Field Summary | |
---|---|
static java.lang.String |
PASSWORD_TEXT_TYPE
|
static java.lang.String |
WSSE_NAMESPACE
|
Fields inherited from interface javax.xml.rpc.Stub |
---|
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, USERNAME_PROPERTY |
Method Summary | |
---|---|
Profile |
getProfile()
Provides access to the request profile data; Should be set prior to making a request. |
Security |
getSecurity()
Provides access to Security details (e.g., account name and license #). |
void |
setProfile(Profile profile)
Provides access to the request profile data; Should be set prior to making a request. |
void |
setSecurity(Security value)
Provides access to Security details (e.g., account name and license #). |
Methods inherited from class org.apache.axis.client.Stub |
---|
_createCall, _getCall, _getProperty, _getPropertyNames, _getService, _setProperty, addAttachment, clearAttachments, clearHeaders, extractAttachments, getAttachments, getHeader, getHeaders, getPassword, getPortName, getResponseHeader, getResponseHeaders, getTimeout, getUsername, removeProperty, setHeader, setHeader, setMaintainSession, setPassword, setPortName, setPortName, setTimeout, setUsername |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WSSE_NAMESPACE
public static final java.lang.String PASSWORD_TEXT_TYPE
Method Detail |
---|
public void setProfile(Profile profile) throws javax.xml.soap.SOAPException
Example: [Java] // Set the profile Profile profile = new Profile(); profile.setClient("AddressSvcTest,4.0.0.0"); svc.setProfile(profile);
setProfile
in interface BaseSvcSoap
profile
-
javax.xml.soap.SOAPException
public Profile getProfile()
Example: [Java] // Set the profile Profile profile = new Profile(); profile.setClient("AddressSvcTest,4.0.0.0"); svc.setProfile(profile);
getProfile
in interface BaseSvcSoap
public void setSecurity(Security value)
Example: [Java] // Set security Security security = new Security(); security.setAccount("account"); security.setLicense("license number"); svc.setSecurity(security); System.out.println(svc.getSecurity().getAccount()); System.out.println(svc.getSecurity().getLicense()); PingResult result = svc.ping("");
setSecurity
in interface BaseSvcSoap
value
- public Security getSecurity()
Example: [Java] // Set security Security security = new Security(); security.setAccount("account"); security.setLicense("license number"); svc.setSecurity(security); System.out.println(svc.getSecurity().getAccount()); System.out.println(svc.getSecurity().getLicense()); PingResult result = svc.ping("");
getSecurity
in interface BaseSvcSoap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |