Showing results for 
Search instead for 
Did you mean: 

HTTP_POST through Web Applications

0 Kudos

Hi All,

We have a Z fucntion module that consumes the web service to get some information. This Z function module uses FM HTTP_POST with rfc_destination as 'SAPHTTP'.

When i try to execute this Z function module throught SE37 or any other wrapper function module, it works fine.

But when I try to call this function module from BSP or Webdynpro ABAP, the HTTP_POST call fails. It gives 'Communication Failed' Exception with message 'Error while opening an RFC connection'.

I tried executing HTTP_POST with rfc destination as 'SAPHTTPA'. In this case the HTTP_POST call gets executed without error or exception. I also get the proper data in response header.

But response body does not return the expected results. It containts garbage data and then parsing fails.

This problem seems to be associated with SAP GUI as web applications (BSP, Webdynpro abap) do not have it.

Thanks ........

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi ...

any inputs....on this ......

0 Kudos

Hi All,

I am not using the function module anymore.

I tried consuming Web service by following method.

CALL METHOD cl_http_client=>create_by_url


url = url


client = http_client



It is working fine..

Thanks alll.......


Former Member
0 Kudos

Hi Bhushan

We're also using a z FM which uses the FM http_proxy. Now the client wants a web service to take over instead of this http_proxy FM.

We are new to web services.

Could you throw some light here ?

Also which web service did you consume in your scenario.



Developer Advocate
Developer Advocate
0 Kudos

This question and the subsequent, recent fallow up question are not Web Dynpro ABAP related. Please ask you questions in the correct forum.

Dear Pushpraj, please start a new question thread in the correct forum.

This thread will now be locked by the Forum Moderator.