The RPM Web Services currently support the C++/C#/VB API.
Visual Studio languages access the RPM Web Services API through objects
that serves as proxies for their server-side counterparts. Before sing the
RPM Web Services API, you must first generate these objects form your WSDL
files.
Visual Studio provides two approaches for importing your WSDL files and
generating a Web service client: an IDE-based approach and a command line
approach.
.NET with C#
Adding a Web reference:
- On the Project menu, choose Add Web Reference.
- In the URL box of the Add Web Reference dialog box, type the URL
to obtain the service description of the XML Web service you want to access,
such as: File://c:/wsdlrep/Application.wsdl
- Click the Go button to retrieve information about the XML Web service
- In the Web reference name box, rename the Web reference to the wsdl file
name.
- Click Add Reference to add a Web reference for the target XML Web
service.
- Visual Studio retrieves the service description and generates a proxy
class to interface between your application and the XML Web service
You can now start using the API and begin development.
Using
Visual Studio Tools:
- Install the .NET SDK framework.
- Have wsdl.exe in your path.
- Open a command prompt window.
- Go to your \wsdl folder.
- Execute the command: wsdl /l [CS/VB/JS] yourwsdlfilename.wsdl..
This will generate the API with the following files:
- Youwsdlfilename.cs for C#
- Youwsdlfilename.vb for Visual Basic
- Youwsdlfilename.js for Jscript
In the previous procedure, "yourwsdlfilename.wsdl" can be one of the following.
RPC/Encoded |
Document/Literal |
Authenticate.wsdl |
AuthenticateLiteral.wsdl |
Application.wsdl |
ApplicationLiteral.wsdl |
You can now start using the API and begin development.