Deploying and running a .NET Web Service project

After you create a .NET Web Service project, you can deploy it from the Project painter or from a pop-up menu on the project object in the System Tree.

When you deploy directly to an IIS server, PowerBuilder creates an application directory under the IIS virtual root and creates an ASMX file in the application directory. The ASMX file created by the project is an ASP.NET executable file rather than a true WSDL file, so you might need to add the “?WSDL” suffix to the URL when you try to access this Web service from certain types of applications.

In addition to the application directory and the ASMX file, deploying the project creates a directory structure that is substantially the same as that created by a .NET Web Forms project. For more information on the directory structure, see “Directory structure on the server”.

NoteAccess permissions for Web service components In some versions of IIS for the Windows XP platform, ASPNET Web services use the Temp system directory during method processing. If the ASPNET user (IIS 5), the IIS_WPG user group (IIS 6), or the IIS_USRS user group (IIS 7) does not have read or write access to the Temp directory on the server, applications invoking methods on those services receive an error message stating that temporary classes cannot be generated. You can prevent this error by granting appropriate user or user group permissions to the Temp directory in the same way you grant permissions for the Sybase and database directories.

For more information on granting ASPNET user permissions, see “Setting up a SQL Anywhere database connection”.

When you deploy to a setup file in a .NET Web Service project, the project builds an MSI file that includes the ASMX file, PowerBuilder system libraries for .NET, and any resource files you listed in the project wizard or painter.

NoteDeploying required PowerBuilder files You can use the Runtime Packager to copy required PowerBuilder runtime files to deployment servers. After you install the package created by the runtime packager, you must restart the server.

For information on required runtime files and the Runtime Packager, see “Deploying Applications and Components” in Application Techniques.

You can run or debug a .NET Web Service project from the PowerBuilder UI if you fill in the Application field (and optionally, the Argument and Start In fields) on the project Run tab in the Project painter. The Application field is typically filled in automatically with the name of the Internet Explorer executable on the development machine.

For more information about debugging .NET targets, including .NET Web Service components, see Chapter 15, “Debugging and Troubleshooting.”