Skip to content Skip to sidebar Skip to footer

Ksoap2: How To Use Httpstransportse?

I am developing a android app to communicate with an web service that requires an SSL connection. To do that, I want to use HttpsTransportSE, but I can't find tutorials about how t

Solution 1:

This code from the HttpsTransportSE should help:

public HttpsTransportSE (String host, int port, String file, int timeout) {
    super(HttpsTransportSE.PROTOCOL + "://" + host + ":" + port + file);
    this.host = host;
    this.port = port;
    this.file = file;
    this.timeout = timeout;
}

So to hit https://MyServer:8080/MyService You call:

HttpsTransportSE("MyServer", 8080, "/MyService", timeout);

Post a Comment for "Ksoap2: How To Use Httpstransportse?"