|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.BaseResult
com.avalara.avatax.services.tax.IsAuthorizedResult
public class IsAuthorizedResult
Result information returned from the AddressSvcSoap
's
AddressSvcSoap.isAuthorized(java.lang.String)
method and
the TaxSvcSoap
's TaxSvcSoap.isAuthorized(java.lang.String)
method.
[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"); int numMessages = (result.getMessages() == null || result.getMessages().getMessage() == null ? 0 : result.getMessages().getMessage().length); JOptionPane.showMessageDialog(null, "Result Code: " + result.getResultCode().toString() + "\r\n" + "# Messages: " + numMessages + "\r\n" + "Expires: " + result.getExpires() + "\r\n" + "Operations: " + result.getOperations(), "Ping Result", JOptionPane.INFORMATION_MESSAGE);
Constructor Summary | |
---|---|
IsAuthorizedResult()
Initializes a new instance of the class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code. |
java.util.Calendar |
getExpires()
Indicates the subscription expiration date in yyyy-mm-dd format (e.g. |
java.lang.String |
getOperations()
Authorized operations for the user. |
static org.apache.axis.encoding.Serializer |
getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
setExpires(java.util.Calendar expires)
Indicates the subscription expiration date in yyyy-mm-dd format (e.g. |
void |
setOperations(java.lang.String operations)
Authorized operations for the user. |
Methods inherited from class com.avalara.avatax.services.tax.BaseResult |
---|
getMessages, getResultCode, getTransactionId, setMessages, setResultCode, setTransactionId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsAuthorizedResult()
Method Detail |
---|
public java.lang.String getOperations()
This will contain a comma-delimited list of the
requested operations the user is authorized to invoke.
For security, it will not return any operations other than those requested.
Example: "GetTax,PostTax"
public void setOperations(java.lang.String operations)
This will contain a comma-delimited list of the
requested operations the user is authorized to invoke.
For security, it will not return any operations other than those requested.
Example: "GetTax,PostTax"
operations
- public java.util.Calendar getExpires()
public void setExpires(java.util.Calendar expires)
expires
- public boolean equals(java.lang.Object obj)
equals
in class BaseResult
obj
-
public int hashCode()
hashCode
in class BaseResult
Object.hashCode()
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |