Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member182004
Contributor

In the previous chapter we have created a Service consumer proxy:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/24/creating-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.  :smile:

4 Comments
Labels in this area