Skip to Content

Using SAP XI/PI middleware we can create and expose WebServices, in this blog we are going to try to explain how an ABAP WebService can be created, exposed and tested only using ABAP.


First, we have to expose a Function Group as an Enterprise Service which is going to be ready to be called.

We’ll use Function Group Z_WEBSERVICE_TEST which has Function Module Z_CALCULO and we are going to expose it as an Enterprise Service.

We are using the wizard for Web Service creation.

Right click on the Function Group, then select Create -> Web Service


Imagen1.png


Write the Service Definition Name, a brief description and set the EndPoint as Function Group


Imagen2.png


We have to specify the Function Group name that is going to implement this Service Definition.


Imagen3.png


Select the Function Module.

Imagen4.png

Use the default profile called PRF_DT_IF_SEC_LOW to establish the lowest security profile in this Service Definition.

Make sure to check the field “Deploy Service”. If you don’t check the field, you can complete this step later manually from transaction code SOAMANAGER using the option for creating an EndPoint in ‘Configurations’ tab.


Imagen5.png


Check “Local Object” field to save the object locally (not transport)


Imagen6.png

In the final step choose the “Complete” option


Imagen7.png


Now that we have completed the previous step we can see the next screen where we can explore the service definition.


Imagen8.png


We have to enter to the trx. SOAMANAGER and choose the tab Application and Scenario Communication -> Single Service Administration.


Imagen9.png


We have to search the WS Definition that we created.


Imagen10.png


When we click on “Open WSDL Document for selected binding” a new windows pops up with the WSDL document:


Imagen11.png


The final WSDL file in now available.

Imagen12.1.png


With this, we have finished the creation of the WebService and it’s ready to be used for any external application.

Note: If you change some parameters in you function, you need to update it in the service definition. To do this go to trx. SE80 and select your previously created Service Definition and do a syntax check, then it will ask you if you want to correct the new parameters in the definition.

In the next chapter we are going to find how can we consume this WS using an ABAP proxy class.

Part 2:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/24/creating-a-service-consumer-proxy

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply