crear web services usando sap net connector

15
Que es SAP .NET Connector SAP product. Based on Microsoft .NET Technology Interact with SAP via RFC/SOAP Fully integrated with Visual Studio.NET Managed Code

Upload: xurand-gomez-zarate

Post on 17-Dec-2015

41 views

Category:

Documents


4 download

DESCRIPTION

Ejempl de Crear Web Services para SAP .NET, usando Net Connector

TRANSCRIPT

Create SAP Web Service with SAP .Net Connector in 5 minutes

Que es SAP .NET ConnectorSAP product. Based on Microsoft .NET TechnologyInteract with SAP via RFC/SOAPFully integrated with Visual Studio.NETManaged Code1Add Protocol verbageFeature HighlightGenerates C# Proxy Classes for any .NET application integrationsSupports RFC and SOAP Supports qRFC, tRFCSupports asynchronous SOAP callsRFC client or RFC server Common LanguageRuntime.NETConnectorRuntimeWebServicesVBC++C#Visual Studio.NETMicrosoft .NETProxyClassGeneratorSAP SystemBORDDICInterface repositoryRFCSOAPRFC LayerApplicationRuntime.NET ConnectorComponent (generated)DesigntimeSOAP LayerFeature of Web ServiceIt is ASP.Net Web ServiceHosted by IIS. Using HTTP protocolSecure: SSL for connection. NTLM for authentication. Role base authorization.Single sign via NTLM GSSAPIPlatform Neutral. Can be accessed via http protocol.Strong versioning via XML NamespaceSteps to Create Web Service for RFC_Customer_GetCreate a C# project for ASP.Net Web ServiceGenerate SAP Proxy via SAP .Net Proxy Generator for RFC_Customer_GetOpen Proxy1.cs and change the following linepublic void Rfc_Customer_Get() topublic virtual void Rfc_Customer_Get ()

Steps to Create Web Service for RFC_Customer_Get (Continue)Open Service1.asmx and do the following modificationpublic class Service1 : SAPProxy1public override void Rfc_Customer_Get ()Add these code in this mothedthis.Connection = SAP.Connector.SAPConnectionPool.GetConnection (MyConnectionString);base.Rfc_Customer_Get(Kunnr,Name1, ref Customer_T);Compile the code and you have the web service for this RFC.

ClientDomainA\denniswRun Window app andCall Web ServiceWeb Service runs under DomainA\ProcAcct credential. This account then calls SAP RFCSAP check DomainA\ProcAcct in USRSYSACLSAP check DomainA\dennisw in vusrextid SAP check dennisw in USRACLRun SAP process under dennisw accountHow SAP Single Sign On work under ASP.Net Web ServiceSet up single sign on for web serviceIIS ConfigurationDisable anonymous accessSet up Windows Integrated AuthenticationWeb Service ConfigurationGenerate encrypted user name and password via aspnet_setreg.exe program. This value will then be set up in registry. Here we assume the user name is SAPCMDEVAdd the following line in Web.Config Set up single sign on for web service - ContinueGSS LibraryRequires on the server where Web Service is located.Copy the GSSNTLM.DLL to c:\windows\system32If the GSSNTLM.DLL was copied to a folder other then within the environment search path, you need to add the following line in system environment SNC_LIB=file path\GSSNTLM.dllMake sure to replace the gssapi32.dll with this GSSNTLM.dll if the old gssapi32.dll exists. The old gssapi32.dll does not work.Set up single sign on for web service - ContinueCreate Entry in Table SNCSYSACL via SNC0This table contains a list of trusted domain accounts or SNC.Start SAP and run SNC0Make sure to enable the RFC/CPIC/Ext ID options

Set up single sign on for web service - ContinueMake sure all users who access SAP will have their User Accounts in USRACL or via SU01Mapping external users into SAP usersRun SM30 and table VUSREXTIDValue: Work Area=NT. Value: External ID = MYDomain\denniswSet up single sign on for web service - ContinueProgram The Connection String with the following value:SNC_MODE=1;SNC_PARTNERNAME="p:" + System.Security.Principal.WindowsIdentity.GetCurrent().Name; Web Service Process AccountEXTIDDATA=User.Identity.Name; Caller credentialEXTIDTYPE=NT;

Access SAP Web Service via Microsoft InfoPathERP RDBMS HR - CRM

Information WorkersEnterprise Applications

XMLWebServices

You can use intelligent forms to interact with your existing applicationsHow does InfoPath 2003 connect to SAP? Utilize SAP RFC and BAPI. Generate RFC/BAPI proxy by using SAP .Net ConnectorCreate Web Service Wrapper around the proxyHosting/Publish the web service via WSDLInfoPath Consume the web serviceDemo