Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to add a HTTP Handler Class to a Webservice

Hi,

I would like to implement a header-response to implement Cross-origin-ressource-sharing for a websservice (because i have same origin policy problems)

I created the Webservice using the wizard for creation of enterprice services based on a function module.

I understand, that I can modify Webservices in Transaction SICF. I can find my webservice there, but when I try to add a class to the Handler-List, I get an error saying, that I can not change this service using this transaction.

What I would like to do there is, to add an HTTP handler class and implement the following abap code:

call method server->response->set_header_field( name = 'Access-Control-Allow-Origin'

    value = '*' ).

Error Message:

Any Ideas?

Thanks a lot in advance!

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question