Precautions for WSF/PHP WebService with WS-Security Support-PHP source code

Source: Internet
Author: User
Tags wso2
Ec (2); currently, few WebService solutions with WS-Security Support are called in PHP. WSFPHP is a good choice. The official homepage is wso2.orgprojectswsfphp, the following describes some notes when using WSFPHP. 1. WSFPHP [WSO2WebServicesFrameworkforPHP] & nbs script ec (2); script

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;

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.