Skip to content

comsechq/tradera.net

Repository files navigation

tradera.net

.NET wrapper to access the Tradera Web API

Introduction

This is .NET standard library you can refer to in your projects if you want to use the Tradera Web API and don't want to add a Service Reference.

The only thing this project does is add a Service Reference to:

  1. https://api.tradera.com/v3/buyerservice.asmx?WSDL.
  2. https://api.tradera.com/v3/publicservice.asmx?WSDL.
  3. https://api.tradera.com/v3/restrictedservice.asmx?WSDL.
  4. https://api.tradera.com/v3/searchservice.asmx?WSDL.

All the API code is generated generated using the dotnet-svcutil CLI tool.

dotnet tool install --global dotnet-svcutil

The following commands will generate the code for the four tradera APIs and keep them in separate folders and namespaces

dotnet-svcutil https://api.tradera.com/v3/buyerservice.asmx -d BuyerService -n "*,TraderaWebService.BuyerService"
dotnet-svcutil https://api.tradera.com/v3/publicservice.asmx -d "PublicService" -n "*,TraderaWebService.PublicService"
dotnet-svcutil https://api.tradera.com/v3/restrictedservice.asmx -d RestrictedService -n "*,TraderaWebService.RestrictedService"
dotnet-svcutil https://api.tradera.com/v3/searchservice.asmx -d SearchService -n "*,TraderaWebService.SearchService"

To reflect any API change you can run these commands to update the service references

cd "path to project"
dotnet-svcutil --update .\BuyerService
dotnet-svcutil --update .\PublicService
dotnet-svcutil --update .\RestrictedService
dotnet-svcutil --update .\SearchService

Disclaimer

WARNING: This is a .NET wrapper automatically generated from tradera's WSDL. Use it at your own risk.

Installation

From Source

Clone this source source, compile, add a reference to TraderaWebService.dll.

From nuget.org

This class libary is on nuget!

In Visual Studio, type the following commmand in the Package Manager Console:

Install-Package TraderaWebService -Pre

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages