Home > Article > Backend Development > 关于webservice的有关问题,不太懂新手请问
关于webservice的问题,不太懂新手请教
http://www.0917cc.com/webService/Server/wsdl/test.wsdl 这是我的webservice请求地址
Client端代码
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->header("Content-type=text/html;charset=utf-8"); $server = "http://www.0917cc.com/webService/Server/wsdl/test.wsdl"; try { ini_set("soap.wsdl_cache_enabled", "0"); $client = new soapClient($server); }catch (SoapFault $exception) { echo $exception;die; } echo '<pre class="brush:php;toolbar:false">'; //var_dump($client); $points = $client->showPoints(array('points'=>100,'area'=>'tw')); var_dump($points); $name = $client->showName(array('points'=>100,'area'=>'cn')); var_dump($name); $sex = $client->getSex(11); var_dump($sex); $md5 = $client->getMd5(11,'VincentHwang','Male',27); var_dump($md5);