How do I generate a web service proxy class for my Symphony C# web client?

Use the WSDL to proxy class tool (WseWsdl3.exe) to generate proxy code for a web service client from a WSDL file. The .NET Framework SDK 2.0 WSDL.exe tool must be installed and accessible.

Generate proxy code:

  1. At the command prompt, run WseWsdl3.exe Soam.wsdl /type:webClient.

    The command generates a file (Soam.cs) containing the proxy code, which consists of a class that derives from the WebServicesClientProtocol class. Use the webClient type of proxy class since the web service methods of the soapClient class type are limited to 0 or 1 parameters.

  2. Change sdRegisterAppResponse, sdViewSessionResponse, and sdViewTaskResponse to sdRegisterAppResponse1, sdViewSessionResponse1, and sdViewTaskResponse1 respectively in Soam.cs to avoid run time errors:

    Search for sdRegisterAppResponse, sdViewSessionResponse, and sdViewTaskResponse in Soam.cs and replace them with sdRegisterAppResponse1, sdViewSessionResponse1, and sdViewTaskResponse1 respectively. After this change, .NET cannot get the return result of sdRegisterAppUpdate, but other methods work properly.

  3. Change "

    this.Url="http://www.platform.com/soam";
    " in Soam.cs with the actual location of Symphony SD, for example:

    this.Url="http://127.0.0.1:15050";