In the previous chapter we have created a Service consumer proxy:
In this section we will see how to test a proxy. To do this we can press the icon highlighted in the picture below (or pressing F8):
In the “Test Service Consumer” window, we choose the Logical Port that we previously created from SOAMANAGER transaction code:
Change to the XML editor, and modify the default values. You can also skip this and execute the request.
The response must display the calculation in XML mode.
Now if we want to consume the WS using ABAP, we have to enter to trx. SE80 and create a new report:
Drag and drop the proxy class ZTESTCO_ZWS_CALCULO and you’ll get a template to consume it as shown below:
Modify the template to call the WS.
Note: setting the logical port in EXPORTING parameters it’s not mandatory because when we created it from SOAMANAGER trx. we checked the “Logical Port is default” option.
Now we can execute it:
This is just a dummy report, but it’s enough to understand the basis about how to consume a WS. 🙂