Hello!
Is there any way to rewrite the following PHP code, making a web client and connecting to the web service?
Is there any way to rewrite the following PHP code, making a web client and connecting to the web service?
B4X:
function msGetClient() {
return new SoapClient("http://192.168.1.112:8822/wsdl/ISomeServer");
}//end function msGetClient
/*
Function: msConnect
@input objectConnection, username(string),password(string)
@output false or XML with auth info
Description: attempts to connect to the map Server and returns xml with auth info if true
*/
function msConnect($msclient, $username = "", $password = "") {
$res = $msclient->Connect('<ConParams user="'.$username.'" pass="'.$password.'" enckey=""/>');
if ($res["return"] == 1) {
return $res["authInfo"];
}else{
return false;
}
}//end function msConnect