Find the answer to your question
Published: May 07 2007, 4:00:00 PMUpdated: August 02 2022, 4:11:33 PM
How can I update my SDK to use a WSDL version that is different from what it is shipped with?
If you want to use a WSDL that is different from what the SDK shipped with, for instance, if you want to update your SDK to use the latest version of the WSDL, here are the steps:
- Get the WSDL version that you need:
Use http://developer.ebay.com/webservices/<version>/eBaySvc.wsdl to download and save the WSDL, where <version> is the version that you need.
For example, if you need 1031, you need to use: http://developer.ebay.com/webservices/1031/eBaySvc.wsdl
- Create call wrapper classes, if required:
If the WSDL includes new calls for which there are no wrapper classes in your existing version of the .NET SDK, you will need to create the wrapper class.
Open the solution DOTNET.SOAP.sln located in <sdk install folder>\Source
Within the Visual Studio solution explorer, right click on Call. Select Add, Add Class. Set the name to <callname>Call.cs, where <callname> is the name of the call, for which the wrapper needs to be created.
Add the necessary namespaces, properties and methods.
Tip: use an existing class as a sample for your new wrapper class.
Generate Code Using the eBayCodeGenerator Tool:
Execute the instructions in the readme.doc file located in the folder <sdk install folder>\Code Generator
When using the tool, you will get a warning similar to this:
"eBay .NET SDK v1029 is compatible with version 1029 of the eBay WSDL. Using other versions of the WSDL with this SDK version is not supported". It is just a warning and you can ignore it.
- Rebuild the SDK:
Rebuild the project - you will find the instructions in HowToBuild.htm located in the folder <install folder>\Source
- Use the new eBay.Service.dll in your project and you should be able to see the new fields and calls that are available in the WSDL.