CREATION AND CONFIGURATION OF WEB SERVICE FROM RFC AND DEPLOYMENT IN ANOTHER SYSTEM

Similar documents
Moving BCM to different IP range

Passing Parameters via Web Dynpro Application

How the Standard Integration between SAP EM and SAP TM Can Be Tested with SE37

SAP Directory Content Migration Tool

How to Use a Customer Specific UIBB in MDG Application 'Create Change Request' Author: Matthias Hubert Company: SAP Created on 5th July 2013

Managing Substitutions in My Inbox 2.0 app

Disclosure Management US SEC. Preview

How to Setup Notifications in Fiori 2.0 Step-by-Step

Disclosure Management. Default font on styles in Disclosure Management

UI Changes for SAP Portfolio and Project Management Depending on NW Release

BW Workspaces Data Cleansing during Flat File Upload

SAP Sybase Replication Server Change DATA Capture Configuration. Example Configuration

How to Configure Fiori Launchpad and Web Dispatcher to Support SAML2 Using SAP Identity Provider Step-by-Step

Creating Application Definitions in Hana Cloud Platform Mobile Services

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

How-to Connect your HANA Cloud Platform Mobile Service Account to your On-Premise OData Service

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Create and run apps on HANA Cloud in SAP River RDE

How To - Extend MDG-M content by new attributes for customer Z-fields in standard tables

Introduction to BW Workspaces and its usage with SAP BusinessObjects BI Tools

A Sample PhoneGap Application Using SUP

MII - Crystal Reports Configuration Guide

TBIT40 SAP NetWeaver Process Integration

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with SAP NetWeaver Single Sign-On

Deploy a SAPUI5 Mobile App to Android Device

How to Install SMP in a Cluster Environment Using ASE DB Without MBO Runtime SAP Mobile Platform (3.0 SP05)

Defining Associations in Business Object Builder

SAP Business Communications Management (BCM) Release Notes 7.0 SP04 Patch 1 ( )

SAP EM How to Display the Planned Route on the Geo-Map

How to Transport KPI Tile Application Step-by-Step Guide in S/4HANA On-Premise

Experience SAP HANA Cloud Portal. Use SAP HANA Cloud Portal to Create Engaging Websites in 5 Simple Steps

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Support Package 4

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with ForgeRock OpenAM

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Disclosure Management Financial Consolidation. Troubleshooting Data Import Interface

Dashboards Batch Utility User Guide

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

SAP BusinessObjects Dashboard Design Component SDK Installation Guide

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BC400 Introduction to the ABAP Workbench

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

ADM900 SAP System Security Fundamentals

How to setup My Inbox 2.0 app

SAP BusinessObjects Explorer API Guide SAP BusinessObjects Explorer XI 3.2 SP2

How To... MDG-M: Replace Enterprise Search with database base search or an alternative search provider

Implementation steps for Note

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

SAP BusinessObjects Integration Option for Microsoft SharePoint Getting Started Guide

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BC430 ABAP Dictionary

BC405 Programming ABAP Reports

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

BC490 ABAP Performance Tuning

ADM100 AS ABAP - Administration

Cube Designer User Guide SAP BusinessObjects Financial Consolidation, Cube Designer 10.0

BC480 PDF-Based Print Forms

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

How To... MDG-M: Replace Enterprise Search with database base search or an alternative search provider. Applicable Releases: From MDG 6.

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

ADM920 SAP Identity Management

TBIT44 PI Mapping and ccbpm

AFA461 SAP Afaria 7.0 System Administration (SP03)

How-to guide: OS Command Adapter

Business Intelligence Launch Pad User Guide SAP BusinessObjects Business Intelligence Platform 4.0 Support Package 5

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

How to... Master Data Governance for Material: Use the Data Import Framework for Material. Applicable Releases: From EhP6

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

MDG100 Master Data Governance

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to setup My Inbox 2.0

SAP ESP: Keyed Streams in CCL New feature in SP08

SAP White Paper SAP Sybase Adaptive Server Enterprise. New Features in SAP Sybase Adaptive Server Enterprise 15.7 ESD2

HA150 SQL Basics for SAP HANA

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

DEV523 Customizing and Extending PowerDesigner

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Management Console Guide SAP BusinessObjects Data Services 4.1 Support Package 1 ( )

TBW30 SAP BW Modeling & Implementation

How to... MDG-M: Best Practice for Maintenance Status. Applicable Releases: From EHP6 FOR SAP ERP 6.0 and from SAP S/4HANA 1511

Stateless Enterprise Integration Patterns on SAP NetWeaver Process Orchestration

SAP NetWeaver Identity Management Identity Center. Implementation guide. Version 7.2 Rev 4. - Optimizing dispatcher performance

Consuming Directory API in ABAP

Dashboards LiveCycle Data Services Gateway Installation Guide SAP BusinessObjects 4.0 Support Package 4

SAP Discovery System V5 Users and Passwords

Single Sign-on For SAP NetWeaver Mobile PDA Client

Configuring relay server in Sybase Control Center

How to setup My Inbox 2.0 app

SAP HA Installations on z/os and Windows Application Servers

How to Enable Single Sign-On for Mobile Devices?

This document applies to Sybase Unwired Platform For more information, visit the Mobile homepage.

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Transcription:

CREATION AND CONFIGURATION OF WEB SERVICE FROM RFC AND DEPLOYMENT IN ANOTHER SYSTEM Applies to: SAP Summary The purpose of this document is to provide creation and configuration of web service from function module in one system and call it from other system. Created on: 18 Sep 2012 Author Bio Sachin Thadani Consultant working for SAP GDC

TABLE OF CONTENTS INTRODUCTION... 3 AUDIENCE... 3 PURPOSE... 3 CREATION OF WEB SERVICE PROVIDER (DEVELOPMENT SYSTEM) :... 3 CREATION OF END POINT FOR WEB SERVICE PROVIDER ( DEV SYSTEM ):... 6 CREATION OF WEB SERVICE CONSUMER ( DEV SYSTEM ) :... 9 GET URL PATH FOR LOGICAL PORT SETUP FOR CONSUMER PROXY... 11 USER SETUP FOR WEB SERVICE EXECUTION... 11 CREATION OF LOGICAL PORT ( TEST SYSTEM ) :... 12 DEPLOYMENT / INTEGRATING WEB SERVICE INTO PROGRAM... 14 2

INTRODUCTION The purpose of this document is to create a web service from already existing function module in client and then deploy it in another system. AUDIENCE SAP PURPOSE The purpose of this document is to create a web service from a function module in test system ( say ISX ) and then deploy it in another system / production system ( say ISV ). CREATION OF WEB SERVICE PROVIDER (DEVELOPMENT SYSTEM) : 1. Create a RFC function module ( remote enabled) : 3

It will open the wizard. Give the service definition name prefix with Z or Y. Give description also. 4

5

CREATION OF END POINT FOR WEB SERVICE PROVIDER ( DEV SYSTEM ): Execute transaction SOAMANAGER and select Web Service Configuration: 6

Search for the service definition created earlier ZE_GENCOND_REPLICATE : Click on Configurations Tab and click on Create. A pop-up box will appear where mention the service name, Description and New Binding name and click on Apply settings: 7

Consider the Provider Security Transport Guarantee and Authentication Method settings and then Save it. In the runtime configuration, you can configure service providers individually or together using profiles. Not all security settings are available when using profiles. Transport Guarantee HTTPS HTTP communication that is secured with SSL (Secure Sockets Layer). You can use the Secure Sockets Layer (SSL) protocol to secure HTTP connections to and from the AS ABAP. When using SSL, the data being transferred between the two parties (client and server) is encrypted and the two partners can be authenticated. For example, if a user must transfer his or her account information, then you can use SSL to authenticate the user and encrypt the information during transfer. Signature and Encryption Messages are secured with an XML signature and XML encryption with asymmetrical keys. WS Security is a standard for securing SOAP messages. By using WS Security, you protect the SOAP messages that are exchanged between the Web service provider and the Web service client with digital XML signatures, XML encryption, time stamps, and security tokens.you can use symmetric or asymmetric encryption. The main difference between symmetric and asymmetric encryption is the type of signature. 8

Secure Conversation Messages are secured with a pre-defined symmetrical key. The key is re-used in further calls. To use WS-SecureConversation, the following requirements must be met: No additional configuration is required. To use WS-Security XML signatures and encryption with X.509 certificates, you need to enable the use of cryptographic functions for the AS ABAP system. The corresponding option is selected in the configuration (for example, in SOAMANAGER). Both the consumer and provider systems have an SSL trust relationship. HTTP Authentication The authentication information is found in the HTTP header. User Name/Password (Basic) X.509 Certificate Authentication with an X.509 certificate. Logon Ticket Authentication with an SAP Assertion Ticket. Message Authentication The authentication information is found in the SOAP header. User Name/Password (Basic) Authentication with WS Security UsernameToken X.509 Certificate Authentication with a signed SOAP message, user authentication by certificate SAML 1.1 Authentication with a signed SAML 1.1 Assertion You choose one of the predefined security settings during the runtime configuration for the service consumer. CREATION OF WEB SERVICE CONSUMER ( DEV SYSTEM ) : Goto Se80 ( Object Navigator ) - > Enterprise Services -> Service Consumer -> Create 9

Execute the following transaction: SOAMANAGER This will initiate a Web session and prompt you to log into the WebAS. Once you have logged in, the next step is to locate the Enterprise Service that you created earlier. 10

GET URL PATH FOR LOGICAL PORT SETUP FOR CONSUMER PROXY Open WSDL document for Selected Binding and find out the WSDL link to configure in the Service Consumer system USER SETUP FOR WEB SERVICE EXECUTION Create Web Service Consumer Proxy in Dev System and the move it to another system through transport request. Set up User of type System in the Provider System for authentication and execution of Web Service Assign Technical and Transactional profiles to the user. For example here we are setting a system user WEBSERVICE with technical and transaction profile. 11

CREATION OF LOGICAL PORT ( TEST SYSTEM ) : Copy above URL for creation of Logical port for the Consumer proxy and execute transaction SOAMANAGER. Select Consumer Proxy ZCO_ZE_GENCOND_REPLICATE and click on Apply selection : Go to Configurations Tab and Create Logical port for example LP_HTTP. As soon as we click on create button, it will open a popup where specify Logical port name and description. Choose configuration type Manual Configuration or any other configuration type based on system settings : 12

Click on Apply Settings and set Logical Port is Default, If you want to set this logical port as default, then check the checkbox. In the consumer security, provide User name WEBSERVICE and password: In the Transport settings tab, provide URL access path fetched above, Computer name of Access URL and Port Number and click on SAVE. 13

Once all settings done, click on Ping Web Service to check if Web Service provider in Dev System is getting pinged from Test System : DEPLOYMENT / INTEGRATING WEB SERVICE INTO PROGRAM From the consumer proxy created, get the generated method name from SE24 ( Class Builder) : 14

To call the web service, create an instance for the consumer proxy created above and call the method generated : Create object with reference to Consumer proxy Logical port created through SOAMANAGER DATA : lr_system_fault TYPE REF TO cx_ai_system_fault, lr_gencond_repl_except TYPE REF TO zcx_zvgencond_replicate_except, lr_appl_fault TYPE REF TO cx_ai_application_fault, lr_cons_proxy TYPE REF TO zco_ze_gencond_replicate. TRY. CREATE OBJECT lr_cons_proxy EXPORTING logical_port_name = LP_HTTP ( Logical Port created). CATCH cx_ai_system_fault. ENDTRY. Call Consumer proxy Web Service Method TRY. CALL METHOD lr_cons_proxy->zvgencond_replicate (Consumer proxy method) EXPORTING input = lt_input IMPORTING output = lt_output. Catch Exception if any raised CATCH cx_ai_system_fault INTO lr_system_fault. lv_error_flag = 'X'. CATCH zcx_zvgencond_replicate_except INTO lr_gencond_repl_except. lv_error_flag = 'X'. CATCH cx_ai_application_fault INTO lr_appl_fault. lv_error_flag = 'X'. ENDTRY. 15

www.sap.com 2012 SAP AG. All rights reserved. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company. Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.