‎2008 Jun 30 11:54 AM
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?
‎2008 Jun 30 12:16 PM
I have added the handler to the list,
where did you add at "rfc" node next to CL_SOAP_HTTP_EXTENSION ?
‎2008 Jun 30 12:23 PM
Yes, I have in the Handler List (in execution order):
1 cl_soap_http_extension
2 zcl_my_class
‎2008 Jun 30 12:40 PM
does your handler class implements interface IF_HTTP_EXTENSION
‎2008 Jun 30 1:02 PM
‎2008 Jun 30 1:11 PM
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
‎2008 Jun 30 3:07 PM
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?