Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call ABAP Proxy

Former Member
0 Likes
656

Hi,

I'm trying to call a proxy interface (outbound) by calling the class behind the proxy.

everything works... the XML gets created from the proxy and is shown in SXMB_MONI, but unfortunately the XML gets not send to the corresponding Inbound Interface (which is configured in XI)

if I use SPROXY for testing the Outbound proxy the XML will be sent to the Inbound interface, but not with my class-call

so what needs to be done before or after calling the class to ensure that the XML gets sent to Inbound Interface?

I debugged the test in SPROXY and came to class CL_AI_RUNTIME_TEST maybe the following coding needs to be added before calling the proxy class:

        CREATE OBJECT l_proxy TYPE (r3object_sender-class).

        TRY.

            l_routing_prot ?= l_proxy->get_protocol( if_wsprotocol=>routing ).
            DATA:
              l_routing_prot_local TYPE REF TO cl_wsprotocol_routing.
            l_routing_prot_local ?= l_routing_prot.
            l_routing_prot_local->set_sender( selections->sender-address ).

but I'm not sure about that... (cannot try this atm)

1 REPLY 1
Read only

Former Member
0 Likes
373

solved... COMMIT WORK was needed 😐