Modifying the Configuration File

You can modify the default .NET Framework configuration settings for a WCF Service.

Settings for a WCF service target are defined in a configuration file that the PowerBuilder .NET target wizard automatically generates in the application directory. The XML file, named project.config, includes the basic service, endpoint, and binding elements required by the service, based on your selections in the wizard.

When you deploy your application to an IIS host, the generated file is copied to the output directory and renamed Web.config; if you deploy it to a console host, the file is renamed ApplicationFileName.config. Example: WCFService_host.exe.config

If you need a more complex configuration than the generated one, you can edit the .config file directly. Or, if you have installed the Microsoft .NET Framework SDK, you can use the WCF Service configuration editor in PB.NET to edit the file.

To open the WCF Service configuration editor directly in PowerBuilder .NET, first add it to the IDE's program selection list:

  1. In the Solution Explorer, right-click your configuration file and choose Open With.
  2. In the Open With dialog, click Add . Navigate to svcconfigeditor.exe in your Microsoft .NET Framework SDK installation and click Open to add the file to the list.
    For example:
    C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\SvcConfigEditor.exe
  3. Select the configuration editor from the list and click OK.