Generating a WCF client proxy and application configuration files using the svcutil tool with metadata from a running service
Instructions for using the Microsoft svcutil.exe tool to generate a client for a service which is configured to use the IBM® MQ custom channel for WCF.
Before you begin
- The WCF service must be running before the svcutil tool is started.
- The WCF service must expose its metadata using an HTTP port in addition to the IBM MQ custom channel endpoint references to generate a client directly from a running service.
- The custom channel must be registered in the configuration data for svcutil.
About this task
- Start the WCF service (The service must be running before the svcutil tool is started).
- Add the details from the svcutil.exe config file from the root of the installation, into the active svcutil configuration file, typically C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\svcutil.exe.config so svcutil recognizes the IBM MQ custom channel.
- Run svcutil from a command prompt, for example:
svcutil /language:C# /r: installlocation\bin\IBM.XMS.WCF.dll /config:app.config http://localhost:8000/IBM.XMS.WCF/samples - Copy the generated app.config and YourService.cs files to the Microsoft Visual studio client project.