How to write a C# client for Creo Elements/Direct Model Manager Web Services
You can create a C# client to test the various Creo Elements/Direct Model Manager Web Services or Web Clients.
Prerequisites:
You must have Microsoft Visual Studio 2008 and .Net Framework 3.5 or Microsoft Visual Studio 2010 and .Net Framework 4.0 installed.
Setup:
1. In Microsoft Visual Studio 2008, click > . The New Project dialog box opens.
2. Select Visual C# from the Projects types list and Windows Forms Application from the Templates list.
3. Click OK. The TestWebClient – Microsoft Visual Studio page opens.
4. Right click the TestWebClient Project and select Add Service Reference. The Add Service Reference dialog box opens.
5. Click Advanced. The Service Reference Settings dialog box opens.
6. Click Add Web Reference. The Add Web Reference dialog box opens.
7. Type http://localhost:8580/QueryService?wsdl in the URL: box and click Go. The QueryService methods that will be tested and verified by the C# client for Creo Elements/Direct Model Manager are now visible in the left pane.
8. Type a name in the Web reference name: box. For example, QueryService.
9. Click Add Reference. The QueryService project is now visible under the projects on the TestWebClient – Microsoft Visual Studio page. You can now use the generated code to write a client for the Model Manager Web Services.