webMethods Microsoft Package 9.0 | webMethods Package for Microsoft .NET Documentation | webMethods Package for Microsoft .NET Installation and User’s Documentation | Using Designer with the webMethods Microsoft Package | Importing .NET Methods into Designer
 
Importing .NET Methods into Designer
 
Input Variables
Output Variables
You can import methods from Microsoft .NET assemblies and use them to create .NET services. webMethods services can consume these .NET services.
Tip:
From a practical standpoint, it is easiest to import and maintain all .NET services from an assembly into the same folder.
*To create a .NET service from a .NET method using Designer
1. The .NET Common Language Runtime (CLR) should start automatically, but if it is not yet loaded, use Integration Server Administrator to start it.
For more information, see Starting and Stopping the Microsoft .NET CLR.
2. From Designer, go to File > New > .NET Service.
3. Select the folder in which the services are to be created and click Next.
4. In the Create a New .NET Service dialog box, locate a .NET assembly on the path where the CLR can access it.
This dialog box displays the white-listed directories. For more information on white-listed directories, see Specifying white-listed directories.The only files displayed in this dialog box are assembly DLLs or EXEs. You can select multiple .NET assemblies for importing.
5. After you have selected assemblies, click Next.
6. In the Select Specific .NET services dialog box, select the methods you want to import into Designer. By default, all methods in all selected assemblies are selected. You can select or clear whole assemblies, whole classes, or individual methods as needed.
7. Click Finish. Designer creates a service for each method and places it in the specified folder.
Note:
For assemblies that are not located in the same windows domain or on the same machine as the CLR, the CLR may fail to load an assembly and issue a security error if the assembly was compiled with the unsafe option or if user permissions for the remote directory do not permit access. To resolve either condition, copy the assembly to the machine where the CLR resides, set directory permissions appropriately, or configure a trust relationship between the domains.
You can view the variables for the resulting service in the Input/Output tab of the editor. In addition to the variables supported by a specific method, there are variables that are part of each .NET service.