web service publishing - abap development - scn wiki

20
Getting Started Newsletters Store Getting Started Newsletters Store Search the Community Welcome, Guest Login Register Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Added by surjith kumar, last edited by surjith kumar on Aug 18, 2010 ABAP Development / ABAP Development and Programming Web Service Publishing Author : P. Surjith Kumar & Ravi Andela Created on : 18th Aug 2010 Author Bio : P.Surjith Kumar working as Senior Consultant in Enteg Technologies Pte Ltd., Singapore Ravi Andela working as Senior Consultant in Enteg InfoTech pvt Ltd, Bangalore Scenario: Create a RFC (Remote function Call), publish it as webservice and test the Response. Pre-request: The Service for SOA Manager has to be active, in Transaction Code SICF you have to confirm it. Steps to Publish the WebService 1) Create a custom Remote enable function Module 2) Call a BAPI to get User Details and based on the User id 3) Publish the Function Module as a Web Service 4) Go to Transaction Code SOAMANAGER and generate the WSDL File 5) Then Go to the Mapped Enterprise Portal and Test the Response 1) Create a function Module and make it as Remote Enable 2) Call a BAPI to get User Details and based on the User id Execute the Function Module

Upload: gary-wu

Post on 20-Jan-2016

57 views

Category:

Documents


3 download

DESCRIPTION

Web Service Publishing - ABAP Development - SCN Wiki

TRANSCRIPT

Page 1: Web Service Publishing - ABAP Development - SCN Wiki

Getting Started Newsletters Store Getting Started Newsletters Store

Search the Community

Welcome, Guest Login Register

Products Services & Support About SCN Downloads

Industries Training & Education Partnership Developer Center

Lines of Business University Alliances Events & Webinars Innovation

Products Services & Support About SCN Downloads

Industries Training & Education Partnership Developer Center

Lines of Business University Alliances Events & Webinars Innovation

Added by surjith kumar, last edited by surjith kumar on Aug 18, 2010

ABAP Development / ABAP Development and Programming

Web Service Publishing

Author : P. Surjith Kumar & Ravi Andela

Created on : 18th Aug 2010

Author Bio :

P.Surjith Kumar working as Senior Consultant in Enteg Technologies Pte Ltd., Singapore

Ravi Andela working as Senior Consultant in Enteg InfoTech pvt Ltd, Bangalore

Scenario:

Create a RFC (Remote function Call), publish it as webservice and test the Response.

Pre-request: The Service for SOA Manager has to be active, in Transaction Code SICF you have to confirm it.

Steps to Publish the WebService

1) Create a custom Remote enable function Module

2) Call a BAPI to get User Details and based on the User id

3) Publish the Function Module as a Web Service

4) Go to Transaction Code SOAMANAGER and generate the WSDL File

5) Then Go to the Mapped Enterprise Portal and Test the Response

1) Create a function Module and make it as Remote Enable

2) Call a BAPI to get User Details and based on the User id

Execute the Function Module

Page 2: Web Service Publishing - ABAP Development - SCN Wiki
Page 3: Web Service Publishing - ABAP Development - SCN Wiki
Page 4: Web Service Publishing - ABAP Development - SCN Wiki
Page 5: Web Service Publishing - ABAP Development - SCN Wiki

3) Publish the Function Module as a Web Service

Make the RFC as Web Service as mentioned below.

Page 6: Web Service Publishing - ABAP Development - SCN Wiki
Page 7: Web Service Publishing - ABAP Development - SCN Wiki
Page 8: Web Service Publishing - ABAP Development - SCN Wiki
Page 9: Web Service Publishing - ABAP Development - SCN Wiki

Once Created the below message will appear.

4) Go to Transaction Code SOAMANAGER and generate the WSDL File

Page 10: Web Service Publishing - ABAP Development - SCN Wiki

Then a Browser Window will appear as below. Then Click "Single Service Administration" as highlighted.

Enter the Service Name.

Page 11: Web Service Publishing - ABAP Development - SCN Wiki

Then the Respective Web Service object will appear here. Then Select it and Click "Apply Selection".

Then the below window will appear.

Page 12: Web Service Publishing - ABAP Development - SCN Wiki

Then Click "Open WSDL document for selected binding" as highlighted.

Page 13: Web Service Publishing - ABAP Development - SCN Wiki

Then a new window will WSDL will appear as shown below.

Page 14: Web Service Publishing - ABAP Development - SCN Wiki

Save the WSDL as XML File and Note the URL.

http://HostName:8000/sap/bc/srt/wsdl/bndg_B58A644C1265FA0FE1000000C0A8648B/wsdl11/allinone/ws_policy/document?sap-client=800

Then go to EP URL http://PortalHost:50100/index.html

Page 15: Web Service Publishing - ABAP Development - SCN Wiki

Then Click "Web Services Navigator"Then the following Window Will Appear.

Page 16: Web Service Publishing - ABAP Development - SCN Wiki

5) Then Go to the Mapped Enterprise Portal and Test the Response

Then Give the WSDL url

Page 17: Web Service Publishing - ABAP Development - SCN Wiki

Then Click "Next" button.

Page 18: Web Service Publishing - ABAP Development - SCN Wiki

Then the Same Screen will Appear.

Then Give the User id & Password for the web service provider system and Press Submit.

Page 19: Web Service Publishing - ABAP Development - SCN Wiki

Then Click as highlighted below.

Click on Web service name for entering the parameter to be passed to web service

Now you will find the input boxes for the parameters of the webservice

Give the User id (i.e. input) and click on "Send" button