.NET SOAP Example

.NET SOAP Example

Overview

The .NET SDK includes an executable that can automatically generate the files necessary to access screen-scraper's SOAP interface as an object.

The first step in the process is getting screen-scraper running as a server. Please follow that link if you are not familiar with getting screen-scraper running as a server.

Next we will generate the service class to do the actual communication in SOAP for us. There is a wsdl.exe in the Bin directory of the .NET SDK. Find it on your computer. Using v1.1 here is an example of using it: . To see the options available when using wsdl.exe like the output language being Visual Basic, try the flag /?.

After creating the SOAPInterfaceService class, it is possible that there is a mistake in the code. Find the getDataSet method. If the method returns 'String[]', then change it to 'String[][]' and also the casting of the returned object.

C# Code Example

The following is an example class which uses the generated class from above to call on the scraping session created in Tutorial 3. Be sure that the newly created class is part of the compilation process.