Search code examples
sslibm-mobilefirst

MobileFirst 6.3 issues connecting adapter to https webservice


I'm trying to connect my adapter to an https web service however whenever I invoke it I get the following error:

Http request failed: java.net.SocketException: Connection reset

Do I need to do anything special to connect to https webservice? I tried connecting to the same webservice using Postman and it worked fine.


Solution

  • I spent two days trying suggested solutions with no luck, the server log didn't have anything other than SocketException: Connection Reset all over the place.

    I solved this by creating a Java class that calls the webserivce and then called the Java class from my Adapter, I followed this tutorial to do that:

    https://www.ibm.com/developerworks/community/blogs/worklight/entry/adding_a_java_based_worklight_adapter_to_your_mobile_application7?lang=en