PHP webservices Development Solution

Source: Internet
Author: User
Tags php book
PHP webservices Development
Heroes Help, I did Java development before, suddenly pulled to another department, come up let me write PHP webservice, I first wrote a Java webservices, boss said let PHP. Although I heard that PHP is very easy, but I did not do PHP development, I checked online information is Zendstudio 5.5.1 development webservices, but I use the development tool is Zend Studio for Eclipse 6.1, also found no relevant development materials. I hope that the kind person can provide a complete, simple, easy-to-understand webservices code, and development steps, let me learn. Reference materials are also available ....

------Solution--------------------
There is a Java foundation to worry about, go directly to the next PHP manual to see. Development tools you can use Eclipse to install a PHP plugin or directly with Zendstudio 9.x

http://php.net/manual/zh/index.php
------Solution--------------------
PHP with which IDE can be developed, I now most commonly used is editplus and vim, because of the fast start speed.
A complete, simple, easy-to-understand webservices code, this you can download a PHP development of the message board to look at it.
In fact, the most important is the PHP manual, because PHP has too many functions. So the development of PHP is just beginning to be out of the manual.
There is a system to read a PHP book the best. This will have a systematic understanding of PHP. After all, Java and PHP are quite different.
ASP to PHP will be very pleasantly surprised.
Java to PHP depends on your own knowledge.
------Solution--------------------
Have the basis, then from the Internet casually find a message board, PHP function Database connection response God Horse is ready;
Then find an MVC framework, the concept of class has also;
Research and research on various open platforms, as well as Apple APNs, communication is the case;
All that's left is PHP's proprietary tools.
------Solution--------------------
If it's soap, look at this part of the manual.
http://php.net/manual/en/book.soap.php
------Solution--------------------
Look at your code, it's supposed to be from http://www.cnblogs.com/likwo/archive/2009/09/18/1569036.html, right?
In the last section of the WSDL





The red part should be changed to your webservices.php URL.
http://localhost/soap/webServices.php if the files are stored in the SOAP directory
Other no changes required

Client Writing
PHP Code
$a = new SoapClient ("http://localhost/soap/webServices.php?wsdl"), Echo $a->helloworld (), Echo ("
echo $a->add;
  • 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.