Currently, few web service solutions with WS-Security Support are called in PHP. WSF/PHP is a good choice. The official homepage is;
1. WSF/PHP [wso2 Web Services Framework for PHP] is an excellent framework provided by wso2.org for PHP to call Web services. It is very easy to use; however, wso2 not only provides the WS framework for PHP, but also provides development frameworks for many other languages, such as spring, Perl, Ruby ......, In addition, many other frameworks and training services are provided. For more information, see wso2.org and wso2.com;
2. Installation of the WSF/PHP module requires many other support packages, which are embodied in some DLL files in windows, including libxml2, iconv, OpenSSL, and zlib, instead of libxml2 [gnome XML library]. During installation, all the dependent DLL files must be concentrated in the wsf_c/lib/directory;
3. The DLL files on which WSF depends must be copied to/Windows/system32/. Otherwise, the module cannot be loaded; this is not the same as adding wsf_c/lib/directly to the path described in the official document. Of course, there may be other ways to solve this problem, because I am not proficient in PHP, but I have communicated with some colleagues, but there is no result;
4. verify whether the WSF module is loaded normally. It is not enough to use the PHP-M command to view the list. The WSF module is not loaded successfully in real time, But PHP. the WSF module is set in ini, And the PHP-M list will also contain WSF. The safest way is to view server logs, such as Apache;
5. When declaring the wssecuritytoken instance, The receivercertificate parameter is used to encrypt the SOAP message, rather than to verify the signature information returned by the server. Therefore, if you only need a signature, you do not need to set this parameter; WSF/PHP does not yet provide the function to verify the signature information returned by the server;
6. When WSF/PHP calls WS, the soap 1.2 protocol is used by default. This may cause errors when calling ws on some servers. If you need to set the soap version, you can set the parameter "usesoap" => "1.1" when applying for a wsclient instance;
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.