Skip to content

SeanRustAvalara/AvaTax-Calc-DirectSOAP-csharp

Repository files navigation

AvaTax-Calc-DirectSOAP-csharp

This is a C# sample demonstrating the AvaTax SOAP API methods using a direct implementation from the WSDLs:

For more information on the use of these methods and the AvaTax product, please visit our developer site or homepage

Requirements:

  • If you do not have an AvaTax account, a free trial account can be acquired through our developer site
  • Enter your account credentials in each test file (e.g. PingTest.cs) you would like to run. You can pass your free trial Username and Password in the accountNumber and licenseKey fields, otherwise use your actual account and key.
  • Set a project as the StartUp project to run that test. This is done by right-clicking on the project name in the solution explorer and selecting "Set as StartUp Project". PingTest is the default StartUp project.
  • If you're using a paid account instead of a free trial account, you will also need to change the CompanyCode in some files. The default value we have entered is APITrialCompany.
  • You will need to install WSE 3.0 from Microsoft and reference the Microsoft.Web.Services3.dll.
  • Visual Studio 2008 and later consume WSDLs using post-.NET 2.0 tools, so the web service in the generated Reference.cs file is defined as System.Web.Services.Protocols.SoapHttpClientProtocol instead of Microsoft.Web.Services3.WebServicesClientProtocol. You will need to change this in References.cs any time you create or update the web service reference.

Contents:

Sample Projects
PingTestDemonstrates a ping call to verify connectivity and credentials.
GetTaxTestDemonstrates the GetTax method used for product- and line- specific calculation.
PostTaxTestDemonstrates the PostTax method used to post or commit a previously recorded document.
CommitTaxTestDemonstrates the CommitTax method used to commit a previously posted document.
GetTaxHistoryTestDemonstrates a GetTaxHistory call to retrieve document details for a saved transaction.
AdjustTaxTestDemonstrates an AdjustTax call to modify a previously committed transaction. If it's not committed continue to use GetTax to update the document.
CancelTaxTestDemonstrates the CancelTax method used to void a document.
ValidateAddressTestDemonstrates the Validate method to normalize an address.
Other Files
.gitattributes-
.gitignore-
AvaTax-Calc-DirectSOAP-csharp.sln-
LICENSE.md-
README.md-
Dependencies: ----------- - .NET 2.0 - Microsoft.Web.Services3.dll

About

C# Sample consuming the Avalara AvaTax WSDL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages