For more information about webservice, see http://www.0917cc.com/webservice/server/wsdl/test.wsdl. this is my webservicerequest address clientterminal code phpcodeheader (& quot; Content-questions about webservice.
Http://www.0917cc.com/webService/Server/wsdl/test.wsdl this is my webservice request address
Client code
PHP code
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 '';//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);
Question 1:
What is the returned string for the http://www.0917cc.com/webService/Client? (How can I return the data I want)
Question 2: Can the address. wsdl of the http://www.0917cc.com/webService/Server/wsdl/test.wsdl request be modified to. php? (. Php returns the same XML format as. wsdl returns)
Question 3:
I don't know what the use of webservice is... if only two machines interact with each other ..
Why not directly request the http://www.xxx.com/xml.xml is not more direct? Why use test. wsdl,
What kind of server listening is... complicated ....
Question 4: When will webservice be used? What is the difference between his direct request for xml?
------ Solution --------------------
Webservice generally provides the object access function, which is accessed using soap.
Access Objects and methods through the web. Then obtain the result.
. Wsdl cannot be changed to. php.
------ Solution --------------------
Is the problem solved?