Skip to Content
avatar image
Former Member

Can i call a HTTP Post method in ABAP or XI?

Hi All,

Can you please let me know how to call a HTTP Post method in ABAP or XI?

my HTTP Post is looks like (HTML form)

<form action="http://111.111.111.1:8080/sample_url" method="POST">

<table>

<tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>

<tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>

<tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>

<!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->

<tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>

<tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>

<tr><td colspan="2"><input type="submit" name="send" value="send"></td></tr>

</table>

</form>

I have a requirement to send a message to the above mention URL using the POST method.

Please let me know the possibility of sending it from ABAP or XI adaptor.

Thanks & Regards,

Chaminda

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 07, 2010 at 05:54 AM

    Create an http receive adapter and provide the below url details as host, port and path prefix there. Create any sender side scenario and send test message. HTTP adapter performs the Post call.

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Stefan Grube

      Hi all,

      Thank you very much for your help. anyway i have solved the problem by using a ABAP Class "CL_HTTP_CLIENT" since Java Mapping is bit difficult. this class supports "POST" and "GET" both.

      Thanks & Regards,

      Chaminda