I don't know much about webservice.

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.