Testing a Service Consumer Proxy _ SCN

4
0 Tweet In the previous chapter we have created a Service consumer proxy:  http://scn.s ap.com/communi ty/pi-and-soa -middleware/bl og/2012/10/2 4/creating-a -service-co nsumer-proxy  In this section we will s ee 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: Testing a Service Consumer Proxy Posted by Juan Manuel  in Process Integratio n (PI) & SOA Middleware  on Oct 25, 2012 5:04:32 PM Share

Transcript of Testing a Service Consumer Proxy _ SCN

  • 0 Tweet

    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 inthe picture below (or pressing F8):

    In the Test Service Consumer window, we choose the Logical Port that we previouslycreated from SOAMANAGER transaction code:

    Testing a Service Consumer ProxyPosted by Juan Manuel in Process Integration (PI) & SOA Middleware on Oct 25, 2012 5:04:32 PM

    Share

  • Change to the XML editor, and modify the default values. You can also skip this and executethe 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 anew report:

  • Drag and drop the proxy class ZTESTCO_ZWS_CALCULO and youll get a template toconsume it as shown below:

    Modify the template to call the WS.

  • Note: setting the logical port in EXPORTING parameters its not mandatory because when wecreated it from SOAMANAGER trx. we checked the Logical Port is default option.Now we can execute it:

    This is just a dummy report, but its enough to understand the basis about how to consume aWS.