Я сейчас использую phonegap для разработки приложения.Я нашел подобный код php, который можно оценить на локальном сервере, но, к сожалению, phonegap не поддерживает php.
Может ли кто-нибудь помочь мне «перевести» приведенный ниже php-код в JQuery ajax или любой другой код javascript?Спасибо!
require_once('nusoap.php');
/* create client */
$endpoint = "http://www.pascalbotte.be/rcx-ws/rcx";
$ns = "http://phonedirlux.homeip.net/types";
$client = new soapclient($endpoint);
// queryRcx is the name of the method you want to consume
// RcxQuery_1 is the name of parameter object you have to send
// x and y are the names of the integers contained in the object
$result = $client->call('queryRcx',array('RcxQuery_1' => array('x' => 12,'y' => 13)), $ns);
print_r($result);