Close Sidebar close
Sapignite
  • SAP
  • Coding Challenges
  • Download

Subscribe & Follow

  • SAP
  • Coding Challenges
  • Download
Sapignite
Sapignite
    ABAP featured

    Create a web service in 10 minutes

    July 3, 2013

    In this exercise we will see how we can expose a service object class ( In our example a Function Module) as a enterprise service.

    At the end of the example we should be able to view the WSDL file of our new web service from transaction SOAMANAGER.

    If you are not sure of what am I talking about? Then I would recommend you to go through BC416 or quickly browse through www.w3schools.com to get an idea and then resume the exercise.

    So here we go. Set your timer on!!!!

    1. We would take the Function Group Z_WEB_SERVICE which has the function module Z_SQRT and expose it as an enterprise service.


    2 . We will use the Web Service Wizard to generate the enterprise service definition for Function Group Z_WEB_SERVICES.

    Right Click on the Function Group and choose Create -> Web Service


    3. On the Provide Service Definition Details step

    Provide the name of your service definition, the short description and set the endpoint as Function Group.


    4 .On Choose endpoint Step.

    Specify the name of the function group which will serve as the implementation for this service definition.

    If you want to use Name Mapping (underscores are removed and changed to camel case) you can check the Mapping of names option.


    5. Choose operations : Select the function modules.


    6.

    On the Configure Service step  :  Leave the default profile as PRF_DT_IF_SEC_LOW

    to set the lowest security level for this service definition.

    Be sure to check Deploy Service. If you forget to check this box, you can complete this step later, manually from transaction code SOAMANAGER by creating an Endpoint.


    7.

    On the Enter Package/Request step : Check Local object to save object as local.


    8.

    On the final step choose Complete.


    9. Now once you hit complete in the above step you can find the below screen where you can explore your service definition.


    10. Now Goto The transaction SOAMANAGER  which should launch a Web Dynpro ABAP based application in your Internet Browser. Choose the Application and Scenario Communication  tab and then click on Single Service Administration.


    11. Search for your Web Service Definition


    12 .  When you click the Open WSDL Document for selected binding or service link a new browser windows will open with the WSDL Document.


    Hooray, The Final WSDL File is now available.



    2 Comments
    create webservice
    Ajay Prakash
    Ajay is a seasoned SAP practitioner with more than 9 years of experience in Implementation, Rollout and support projects.
    • Greetings!

    • Improve Your Writing Skills

    You Might Also Like

    Pie Charts in Adobe Flex using Webdynpro for ABAP

    July 6, 2017

    Learn Parallel Processing in ABAP

    July 28, 2017

    SAP’s revolutionary journey and history of User interface / GUI

    July 10, 2017

    2 Comments

  • Reply Consuming a web service in ABAP – Sapignite July 21, 2017 at 8:49 am

    […] Create a web service in 10 minutes […]

  • Reply Hakim March 6, 2018 at 2:37 am

    to send the data from function module to the third party apps? just execute as normal function module

  • Leave a Reply Cancel Reply

Sign up for some exciting content

Recent Posts

  • What is SAP Leonardo ?
  • RoadMap UI Tutorial webdynpro for ABAP
  • Offline Adobe forms in WebDynPro for ABAP
  • MVC Architecture for Webdynpro for ABAP
  • Webdynpro for ABAP integration with google maps !

Find us on Facebook

Categories

  • ABAP
  • Android
  • Coding Challenges
  • Download
  • Enhancement
  • featured
  • Interviews
  • PI ( Process integration )
  • SAP
  • SAP HANA
  • Uncategorized
  • Webdynpro for ABAP
  • Webdynpro For ABAP

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org