Hi All,
The format of OUTPUT i got is i think HTML.
I am using HTTP_GET for consuming the webservice(BZSt: USt-IdNr. Bestätigung). I am getting the output in the response_entity_body of the function HTTP_GET.
response_entity_body is a type table of text with headerline. But it is in XML format.
Can someone please suggest me how to convert this table which has XML format to ABAP internal table.
Here is my code of HTTP_GET and also attaching the output:
REPORT ZZ_N_TEST3.
DATA p_url(264) TYPE c.
DATA: p_ustid TYPE stceg ,
pu_ustid TYPE stceg ,
l_name TYPE c,
ort TYPE c,
pstlz TYPE c,
stras TYPE c,
user(30) type C,
pwd(30) type C.
DATA: proxy_ip like THTTP-PROXY,
g_status(3) type c,
g_status_text(128) type c,
response type table of text with header line,
response_headers type table of text with header line,
P_FILE LIKE RLGRAP-FILENAME.
p_ustid = 'DEXXXXXXXX'.
pu_ustid = 'NLXXXXXXXXXX'.
CONCATENATE 'http://evatr.bff-online.de/evatrRPC?UstId_1=' p_ustid '&UstId_2=' pu_ustid
'&Druck=nein' INTO p_url.
REFRESH response.
CALL FUNCTION 'HTTP_GET'
EXPORTING
absolute_uri = p_url
* REQUEST_ENTITY_BODY_LENGTH =
rfc_destination = 'SAPHTTP'
proxy = proxy_ip
BLANKSTOCRLF = 'Y'
timeout = 30
IMPORTING
status_code = g_status
status_text = g_status_text
RESPONSE_ENTITY_BODY_LENGTH = rlength
TABLES
* REQUEST_ENTITY_BODY =
response_entity_body = response
response_headers = response_headers
* REQUEST_HEADERS =
EXCEPTIONS
connect_failed = 1
timeout = 2
internal_error = 3
tcpip_error = 4
data_error = 5
system_failure = 6
communication_failure = 7
OTHERS = 8.
loop at response.
write:/ response.
endloop.