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

ICF Handler for SOAP based RFC

Former Member
0 Likes
1,440

Hi all ABAP developers

I use RFC-enabled function modules to create web services. In IFC the service is placed in node /sap/bc/srt/rfc/sap, which is the standard ICF handler for SOAP runtime. I would however like to add a custom handler to the web service. I have added the handler to the list, but the code in the handler is not executed. It does however run on services outside of the SOAP runtime node. Any idea on how to add custom handlers to web services?

6 REPLIES 6
Read only

athavanraja
Active Contributor
0 Likes
1,120

 I have added the handler to the list, 

where did you add at "rfc" node next to CL_SOAP_HTTP_EXTENSION ?

Read only

0 Likes
1,120

Yes, I have in the Handler List (in execution order):

1 cl_soap_http_extension

2 zcl_my_class

Read only

0 Likes
1,120

does your handler class implements interface IF_HTTP_EXTENSION

Read only

0 Likes
1,120

Yes that is correct. Interface IF_HTTP_EXTENSION.

Read only

0 Likes
1,120

everthing seems to be right.

can you do this place an http break point in

IF_HTTP_EXTENSION~HANDLE_REQUEST method in class cl_soap_http_extension ans well as in your class, and try to debug to see the flow

Read only

0 Likes
1,120

No luck.

The URL used to call the webservice points to a different node in ICF: /sap/bc/soap/rfc. In there is another handler called CL_HTTP_EXT_SOAPHANDLER_RFC. The debugger does stop in there when the webservice is called, so this must be the right place. I however cannot add my own handler in the rfc node: 'development class of handler is not transportable'. Sounds hopeless. The SAP library says that the handlers can be adapted to requirements. Any other ideas?