Create SAP Web Service with SAP .

Net Connector in 5 minutes

Dennis Wang Microsoft / EAS /SAP

NET Connector ‡ SAP product.NET ‡ Managed Code .NET Technology ‡ Interact with SAP via RFC/SOAP ‡ Fully integrated with Visual Studio. Based on Microsoft .What is SAP .

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 Connector Runtime RFC SOAP RFC Layer Run time .NET Connector Component (generated) Common Language Runtime SOAP Layer .NET Visual Studio.NET VB Design time C++ C# « Proxy Class Generator SAP System BOR DDIC Interface repository Application Web Services .

Can be accessed via http protocol. NTLM for authentication. Role base authorization. ‡ Strong versioning via XML Namespace . ‡ Single sign via NTLM GSSAPI ‡ Platform Neutral.Feature of Web Service ‡ It is ASP.Net Web Service ‡ Hosted by IIS. Using HTTP protocol ‡ Secure: SSL for connection.

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 ‡ Create a C# project for ASP.

asmx and do the following modification 1. ‡ Compile the code and you have the web service for this RFC. 3.GetConnection (MyConnectionString).Connection = SAP.Connector.Steps to Create Web Service for RFC_Customer_Get (Continue) ‡ Open Service1. public class Service1 : SAPProxy1 public override void Rfc_Customer_Get («) Add these code in this mothed this. base.Name1. .SAPConnectionPool. 2. ref Customer_T).Rfc_Customer_Get(Kunnr.

How SAP Single Sign On work under ASP.Net Web Service Web Service runs under DomainA\ProcAcct credential. SAP check DomainA\ProcAcct in USRSYSACL 2. SAP check dennisw in USRACL 4. Run SAP process under dennisw account . This account then calls SAP RFC Client DomainA\dennisw Run Window app and Call Web Service 1. SAP check DomainA\dennisw in vusrextid 3.

This value will then be set up in registry.exe program.Config ± ‡ ‡ <identity impersonate=´true´ sername=´registry:HKLM\Software\SapWebService\Id entity\ASPNET_SETREG. Here we assume the user name is SAPCMDEV Add the following line in Web.sername´ password=´registry:HKLM\Software\SapWebService\Id entity\ASPNET_SETREG.password´ /> .Set up single sign on for web service ‡ ± ± IIS Configuration Disable anonymous access Set up Windows Integrated Authentication ‡ ± Web Service Configuration Generate encrypted user name and password via aspnet_setreg.

.dll if the old gssapi32.dll with this GSSNTLM. The old gssapi32.DLL to c:\windows\system32 If the GSSNTLM.dll´ ‡ Make sure to replace the gssapi32.Set up single sign on for web service Continue ‡ GSS Library ± ± ± Requires on the server where Web Service is located.dll does not work. you need to add the following line in system environment SNC_LIB=´file path\GSSNTLM.dll exists.DLL was copied to a folder other then within the environment search path. Copy the GSSNTLM.

Set up single sign on for web service Continue ‡ ‡ ‡ ‡ Create Entry in Table SNCSYSACL via SNC0 This table contains a list of trusted domain accounts or SNC. Start SAP and run SNC0 Make sure to enable the RFC/CPIC/Ext ID options .

Set up single sign on for web service Continue ‡ Make sure all users who access SAP will have their User Accounts in USRACL or via SU01 Mapping external users into SAP users Run SM30 and table VUSREXTID Value: Work Area=NT. Value: External ID = MYDomain\dennisw ‡ ‡ ‡ ‡ .

Ge tCurrent().Principal. µCaller credential ± EXTIDTYPE=³NT´.Set up single sign on for web service Continue ‡ Program The Connection String with the following value: ± SNC_MODE=1. ± SNC_PARTNERNAME="p:" + System.Name.Identity.Security.Name. .WindowsIdentity. µ Web Service Process Account ± EXTIDDATA=User.

CRM .Access SAP Web Service via Microsoft InfoPath You can use intelligent forms to interact with your existing applications Information Workers XML Web Services Enterprise Applications ERP ± RDBMS ± HR .

Net Connector Create Web Service Wrapper around the proxy Hosting/Publish the web service via WSDL InfoPath Consume the web service .How does InfoPath 2003 connect to SAP? ‡ ‡ ‡ ‡ ‡ Utilize SAP RFC and BAPI. Generate RFC/BAPI proxy by using SAP .

Demo .

sap-ag.microsoft.com under downloads InfoPath 2003.com/office/understanding/InfoPath 2003/ Visit http://microsoft-sap. Technical White Papers.de/connectors InfoPath 2003 SDK ± Available on microsoft.com for information on: ± SAP at Microsoft ± SAP .Net Connector: https://websmp103. Technical Webcasts.Net Connector ± Upcoming customer workshops ‡ . Development Guides ± MSDN ± http://msdn.Resource ‡ ‡ ‡ SAP .

Sign up to vote on this title
UsefulNot useful