cancel
Showing results for 
Search instead for 
Did you mean: 

https post with XML message

former_member182096
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

probably proxy authentication issue

Regards

Raja

former_member182096
Participant
0 Kudos

you mean IISproxy as we do have a iisproxy in the dmz iis server that is routing requests..surprising this is it works great when I do a https post with a browser, but when it's a b2b software that does the https post, I get a http 500 error.