Considerations when wsf/php invoke a Web service with ws-security support

Source: Internet
Author: User
Tags soap web services wso2
Currently in PHP call with ws-security support of the Web service solution is relatively small, wsf/php is a good choice, the official home page for http://wso2.org/projects/wsf/php, Here is a description of the use of wsf/php when the need to pay attention to some places;
1. The wsf/php "WSO2 Web Services Framework for PHP" is an excellent framework for Wso2.org's Web service for PHP and is very simple to use, but WSO2 not only provides a WS framework for PHP, It also provides development frameworks for many other languages, such as spring, Perl, Ruby ..., and many other frameworks and training services, specifically for wso2.org and wso2.com;
2, wsf/php module installation requires a lot of other support packages, in the following windows as a number of DLL files, mainly including LIBXML2, Iconv, Openssl, zlib, and not just Libxml2 "GNOME XML Library" , all of these dependent DLLs need to be centralized in the wsf_c/lib/directory during the installation process, which can be downloaded to http://www.zlatkovic.com/pub/libxml/, uncompressed after downloading, and DLL files are generally located in/bin /directory;
3, WSF rely on these DLL files must be copy to the/windows/system32/, otherwise the loading module is not successful; this and the official document says that adding wsf_c/lib/directly to the path can be inconsistent. Of course this may have other ways to solve, because I am not proficient in PHP, but with some colleagues to communicate, but no results;
4, verify that the normal loading of the WSF module, only the PHP-M command to view the list is not enough, the real-time WSF module did not load successfully, but the php.ini set up a wsf module, the Php-m list will include wsf; the safest approach is to view server logs such as Apache;
5. When affirming the Wssecuritytoken instance, the parameter receivercertificate is used to encrypt the SOAP message, not to verify the signature information returned by the server, so the parameter need not be set if only the signature is required; wsf/ PHP has not yet provided the authentication service side returns the signature information function;
6. The default use of the SOAP 1.2 protocol when wsf/php invokes WS, which may make an error in some service-side WS invocations, and if you need to set up a SOAP version, you can set the parameter "Usesoap" => "1.1" Implementation when you request 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.