Skip to Content
0
Sep 23, 2014 at 06:06 AM

HTTPS error when connecting Google GEOCODE API

34 Views


Hi,

I have a FM whith which if we pass the address, it returns the co-ordinates. I am using HTTPS to communicate with the google API. I have a problem. It is the Function is receiving the co-ordinates properly at one time and the other time, i get HTTP_COMMUNICATION_FAILURE .

i tried executing the FM independently. At one instance i am getting the co-ordinates and at one instance i am getting the HTTP_COMMUNICATION_FAILURE.

Any Ideas of where to check ?

lr_client->send( ).

CALL METHOD lr_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

lr_client->close( ).

Thanks,

Karthik