Anfang des Inhaltsbereichs

Vorgehensweisen SAPClient Proxy Generation Dokument im Navigationsbaum lokalisieren

 

To add the SAP Proxy to your Visual Studio project you have the following options:

·        Create a new project of type SAP Connector Class

·        Add the proxy to another project type (for example Winform, ASP .NET project, webservice)

Procedure

...

       1.      In Visual Studio .NET choose Project  ®  Add New Item.

       2.      Under templates select SAP Connector Class

This brings up the connector wizard.

You can create proxies from one of these:

 

Proxies to Generate From

Explanation

WSDL file from SAP IFR

Web Services Description Language (WSDL) files that originate in an SAP interface repository (IFR). If you want to create proxies from an SAP IFR, you must have a URL for the WSDL file

In the near future, the SAP IFR will be the central repository for SAP metadata including WSDL files

SAP Server

Generate the C# proxy by examining the metadata stored in the data dictionary of the SAP system. For most scenarios this is the preferred option

Standard WSDL file

You can use an existing WSDL file or create your own WSDL file and import it

 

       3.      If you generate proxies from an SAP server, enter the following information in the Enter Logon information screen:

 

Input

Explanation

System

SAP system name. If you have SAPGUI for Windows installed, you can select an entry from the drop down box

Host

Application server host name

ID

System ID (for example 0)

Client

SAP client number (for example,  000 or 800)

User

SAP user name

Password

Password for that user

Object type (client proxy)

The wizard creates all necessary code for a SAPClient project. The .NET application which uses SAP system functions is called a client proxy

Object type (server stub)

The wizard creates all necessary code for a SAPServer project. The SAP system which uses .NET functions is a server stub

Beautify name

SAP function names are by default upper case. This option makes the names more readable

Create asynchronous methods

This option is only for client applications. It allows you to make your SAP function call on a dedicated thread so that your application remains responsive should the call take some time

 

       4.      Select the Remote Function Modules (RFM) you want to use in your proxy object.

You can use the following search filters to look for the function modules:

 

Option

Explanation

Name-Filter

A search string for finding the proper SAP function(s) by name

Group-Filter

SAP functions are organized by groups. If you know the group name you may use it here

 

After the code has been generated, you can see an SAP proxy WSDL file added to your project. This WSDL file in coordination with Visual Studio and the SAPConnectorGenerator custom tool allows you to manage the SAP proxies automatically.

If you choose to generate the proxy from the SAP IFR you will be asked for the URL of the IFR Server.

If you choose to generate a proxy from a Standard WSDL file you will be asked for the path or URL to that WSDL file.

Ende des Inhaltsbereichs