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 ........