Hi Experts,
I have implemented Service gateway and test it through REST Client and all tests are pass.
I've tried to connect to that service through an Android App using "HttpURLConnection" using that code:
public static String serviceURL = "http://xxxxxxxxxxxxxxxx/sap/opu/odata/sap/Z_GWDEMO_FM_SRV/";
URL obj = new URL(serviceURL):
- HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
Exception was thrown at mentioned point point. Here I've tried to test the service again through REST Client the following response is generated:
<errorxmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
</error>
When tried with other services, the same XML response is generated.
Note: I could not use GWPA now as SSL connection is not enabled to my server.
My questions:
It seems that the RFC is locked. How to unlock it?
What is the best way to connect to Gateway service by URL + Headers + operations through Android app?
Regards,
Mohamed.