php - Figuring out function arguments of a webservice function -


for reasons beyond control, i'm forced use nusoap instead of soap make request webservice.

after searching, found soap's __getfunctions() equivalent in nusoap. part i'm stuck figure out in format parameters expected webservice's function.

require_once(apppath.'libraries/nusoap.php');     $baseurl = 'http://www.webservicex.net/geoipservice.asmx?wsdl';     $client = new nusoap_client($baseurl, true); $err = $client->geterror(); if ($err) {     echo '<h2>constructor error</h2><pre>' . $err . '</pre>';     die(); } $proxy = $client->getproxyclasscode(); print_r($proxy); 

the above giving me output of

class nusoap_proxy_1027585735 extends nusoap_client  {      // http://www.webservicex.net/:getgeoip^      $parameters function getgeoip($parameters)      {          $params = array('parameters' => $parameters);          return $this->call('getgeoip', $params, 'http://testuri.com', 'http://www.webservicex.net/getgeoip');       }      // http://www.webservicex.net/:getgeoipcontext^      $parameters function getgeoipcontext($parameters)      {          $params = array('parameters' => $parameters);          return $this->call('getgeoipcontext', $params, 'http://testuri.com', 'http://www.webservicex.net/getgeoipcontext');      }  } 

so know function names (getgeoip , getgeoipcontext), i'm struggling find out parameters need pass functions.

i'm guessing $params = array('parameters' => $parameters); part should interested in, isn't giving complete picture. in short, there soap's __gettypes() equivalent in nusoap?

you can use soapui example of request.

if create new project url endpoint (wsdl) can soapcalls. more easy understand types define in wsdl.

follow link http://www.soapui.org/soap-and-wsdl/working-with-wsdls.html

$parameters array (key -> value) each param in request

$parameters = array('ipaddress' => 'xxx.xxx.xxx.xxx')


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -