Opening the Add-in and Generating Code
To create a C# or Visual Basic file from a
webMethods service
1. Open Visual Studio.
2. Open an existing .NET project or create a new one.
3. On the Tools menu, click webMethods Add-In for Microsoft Visual Studio.
If this menu item is not visible, make sure you have installed the add-in.
4. In the webMethods Add-In for Microsoft Visual Studio dialog box, provide the following information about the instance of Integration Server to which you want to connect.
In this field... | Type this... |
webMethods Integration Server | The name and port number of Integration Server in the format ServerName:PortNum. The default is localhost:5555. |
UserID | The name of a valid user account on this server. |
Password | The password for the user account in UserID. Passwords are case-sensitive. |
5. Click Connect. The webMethods Add-In for Microsoft Visual Studio window is displayed. This window contains a tree view of packages and services on the Integration Server to which you are connected.
Tip:
The add-in opens as a floating window. You can dock the window by dragging it to the Visual Studio toolbar.
6. Right-click a service and click Generate Code, and then click either of the following:
Click this... | To create code in... | With this extension... |
C# Code | C# .NET | .cs |
VB.NET Code | Visual Basic .NET | .vb |
The file takes the name of the service from which it was generated and has an extension based on the type of code generated.