Connector in 5 Minutes: Dennis Wang Microsoft / EAS /SAP
Connector in 5 Minutes: Dennis Wang Microsoft / EAS /SAP
Net
Connector in 5 minutes
Dennis Wang
Microsoft / EAS /SAP
What is SAP .NET Connector
• SAP product. Based on Microsoft .NET
Technology
• Interact with SAP via RFC/SOAP
• Fully integrated with Visual Studio.NET
• Managed Code
Feature Highlight
• Generates C# Proxy Classes for any .NET
application integrations
• Supports RFC and SOAP
• Supports qRFC, tRFC
• Supports asynchronous SOAP calls
• RFC client or RFC server
Microsoft .NET SAP System
Web RFC
Application
Services
.NET RFC Layer
Connector
Runtime
SOAP
Run .NET Connector SOAP Layer
time Component (generated)
Common Language
Runtime
Feature of Web Service
• It is ASP.Net Web Service
• Hosted by IIS. Using HTTP protocol
• Secure: SSL for connection. NTLM for
authentication. Role base authorization.
• Single sign via NTLM GSSAPI
• Platform Neutral. Can be accessed via http
protocol.
• Strong versioning via XML Namespace
Steps to Create Web Service for
RFC_Customer_Get
• Create a C# project for ASP.Net Web Service
• Generate SAP Proxy via SAP .Net Proxy
Generator for RFC_Customer_Get
• Open Proxy1.cs and change the following line
public void Rfc_Customer_Get(…) to
public virtual void Rfc_Customer_Get (…)
Steps to Create Web Service for
RFC_Customer_Get (Continue)
• Open Service1.asmx and do the following
modification
1. public class Service1 : SAPProxy1
2. public override void Rfc_Customer_Get (…)
3. Add these code in this mothed
this.Connection = SAP.Connector.SAPConnectionPool.GetConnection
(MyConnectionString);
base.Rfc_Customer_Get(Kunnr,Name1, ref Customer_T);
XML
XML
Web
Web
Services
Services