Skip to Content

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

https post with XML message

Hello,

I am trying to receive an XML message from an external customer. We are not using XI, but web as instead.

I have a class with interface - IF_HTTP_EXTENSION

and then a SICF service where the handler is my class.

Inside the class, the code is:

METHOD if_http_extension~handle_request.

TYPE-POOLS: swfty.

DATA: ALL relevant declarations

-


DATA: v_http_entity TYPE REF TO if_http_entity.

DATA: l_cdatatab TYPE TABLE OF string.

DATA: l_name TYPE string,

l_value TYPE string.

DATA: wcl_xml TYPE REF TO zcl_s_xml_read.

DATA: w_payload TYPE string.

DATA: w_request TYPE string.

DATA: w_ack_status TYPE char1.

CALL METHOD server->request->get_data

RECEIVING

data = l_data.

CALL METHOD server->request->get_header_fields

CHANGING

fields = v_fields.

CALL METHOD server->request->num_multiparts

RECEIVING

num = v_num.

CALL METHOD server->request->get_multipart

EXPORTING

index = v_num

RECEIVING

entity = v_http_entity.

IF NOT v_http_entity IS INITIAL.

CALL METHOD v_http_entity->get_cdata

RECEIVING

data = l_cdata_entity.

ENDIF.

Some reason I am getting a connectivity error - http 500..any ideas? It works good when I test internally but doea not work when my customer sends a signal.

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