SlideShare a Scribd company logo
1 of 20
Download to read offline
Enterprise Web
Services With WSO2
WSF/PHP 2.0
Selvaratnam Uthaiyashankar
shankar@wso2.com

September 2008
WSO2 Background
   Founded in August 2005 by Leaders in XML and Web
    services technologies & standards and open source
   Building complete SOA platform, all 100% open
    source
   Founders/ leading contributors to all key Apache
    Web Services/SOA Projects
   Provide commercial support, training and services
    around the software & solutions
   Global corporation with R&D center in Sri Lanka
    and offices in US & UK, totalling 60 + employees
What is the problem with the existing
PHP Systems?


                                  Financial System
Content Management
      System




                                                     Social Networking
                                                          System
                     CRM system
What is the problem with the existing
 PHP SOAP support?


                                                                 SAP
          SOAP 1.1                         .NET
          No security
          No reliability
          No WS-I BP
 PHP
Website
          No MTOM Binary             Secure, Reliable, Binary
          No WS-Addressing   J2EE
                                         Web Services



                                                                CICS
                                    Java
What is WSF/PHP?
   A library that allows users to Create and
    Consume SOAP and REST Web Services in
    PHP
      With full Secure Reliable Interop against
       .NET, Java and JEE
      Simple PHP-friendly programming model

    $client = new WSClient(array(quot;useMTOMquot; => TRUE,
             quot;useSOAPquot; => quot;1.2quot;,
             quot;useWSAquot; => TRUE,
             quot;policyquot; => $wspolicy,
             quot;securityTokenquot; => $sec_token));
Comparison with other SOAP libraries


    Package         Written in   WSDL      Attachment   Security   Reliability


 PHP5 SOAP Ext          C        Partial      No          No           No


    NuSOAP            PHP         Yes         No          No           No


SCA with PHP(IBM)     PHP         Yes         No          No           No


 WSO2 WSF/PHP           C         Yes         Yes         Yes         Yes
WSF/PHP Features
   Stability
   Multiple Deployment Models
       Linux
       Windows
       Solaris
       Apache
       IIS
   Tested with Zend Core for stability and functionality
WSF/PHP Features (Cont...)
   Comprehensive Support for WS-* Standards
       WS-Addressing
         •Version Submission, 1.0
       WS-Security
         •Version 1.0, 1.1
         •Base security standards mean that messages can be protected using
         Encryption, Authentication and Signature
       WS-Trust, WS-SecureConversation
         •Version 1.0, 1.3
         •Advanced security standards allow single-sign on, more efficient
         encryption and more secure deployment
       WS-Policy and WS-SecurityPolicy
         •Enables using industry standard XML to configure security
       WS-ReliableMessaging 1.0, 1.1 and WS-RMPolicy
         •Enables reliability between PHP and other platforms including
         message resending, duplicate detection and persistence
WSF/PHP Features (Cont...)
   Support for Contract First And Code First
    approaches
     WSDL  1.1 and WSDL 2.0
     SOAP 1.1 and SOAP 1.2
     WSDL Generation support using annotated code.
     Wide coverage of complex schema constructs.
     WSDL2PHP Script to generate client and services for
      given WSDL.
WSF/PHP Features (Cont...)
   Enterprise Level Security
     Authentication
     Confidentiality
     Integrity
     Non-Repudiation
     Replay   Detection
WSF/PHP Features (Cont...)
   Binary Data Capability
     Support for Base64, SWA and MTOM
     Secure MTOM support
     MTOM with reliable support
     WSDL Mode API
          Quick and easy API to handle binary with MTOM enabled
           WSDLs.
     Caching
          Low Memory footprint for large binary attachments
WSF/PHP Features (Cont...)
   Comprehensive Support for REST
        Full REST support (GET, PUT, DELETE, POST) with custom URI
         Mapping
               Enables mapping a REST API into PHP easily and naturally

     function echoFunction($inMessage) {

         $outMessage = new WSMessage($inMessage->str);
         return $outMessage;
     }

     $operations = array(quot;echoStringquot; => quot;echoFunctionquot;);
     $restmap = array (quot;echoStringquot;=>array(quot;HTTPMethodquot;=>quot;GETquot;, quot;RESTLocationquot;=> quot;echoStringquot;));

     $service = new WSService(array(quot;operationsquot; => $operations, quot;RESTMappingquot;=>$restmap));
     $service->reply();
WSF/PHP Features (Cont...)
   PHP Data Services
       Multiple database engine support (with PHP PDO extension)
       Nested Query support
       Array based API
       dbs2php converter tool to convert WSAS Java data service XML
        configurations to PHP code
       WSDL Generation support
        $config = array(quot;dbquot; => quot;mysqlquot;, quot;usernamequot; => quot;rootquot;, quot;passwordquot; => quot;abcquot;, quot;dbnamequot; => quot;dsquot;,
                quot;dbhostquot; => quot;localhostquot;);

        $inputFormat = array(quot;employeeByNumberquot; => quot;INTquot;);

        $outputFormat = array(quot;resultElementquot; => quot;employeesquot;,
                            quot;rowElementquot; => quot;employeequot;,
                            quot;elementsquot; => array(quot;last-namequot; => quot;lastNamequot;,
                                quot;first-namequot; => quot;firstNamequot;,
                                quot;emailquot; => quot;emailquot;));

        $sql = quot;SELECT lastName,firstName,email FROM Employees WHERE employeeNumber=?quot;;

        $operations = array(quot;employeesByNumberquot; =>
            array(quot;inputFormatquot; => $inputFormat, quot;outputFormatquot; => $outputFormat, quot;sqlquot; => $sql));

        $my_data_service = new DataService(array(quot;configquot; => $config, quot;operationsquot; => $operations));
        $my_data_service->reply();
WSF/PHP Features (Cont...)
   Interoperability
     With .Net and Java
     Messaging
     Binary Data (MTOM)
     WS-Addressing
     WS-Security
     WS-Reliable Messaging
WSF/PHP 2.0 improvements
   Improved Stability
   Interoperability
   Better WSDL support
   WS-SecureConversation support
   PKCS support
   Replay attack suppression
   Support for ratified WS-* specifications
   PHP Data Services support
   Improved REST API
   MTOM Caching
Customer Examples
   Consuming SaaS from PHP Web applications
     E.g.Betting, Gaming sites
     Governmental and Standards-based work
   Integrating CMS systems (Drupal, Joomla) with
    SOA platforms
     Consuming   existing third party services
     Exposing CMS functionality as services
     Portal integration with SOA back-ends
   Service enabling PHP legacy applications
     Securingservice oriented applications that require
      end-to-end message level security
The Traditional PHP Application
SOA Solution With WSF/PHP
Summary
   A major new release of a popular library
     Adds improved WS-* and REST support
     Improved stability
     Makes it simple to connect PHP to a wider SOA
     New capability to expose Data Services makes
      creating services more effective than ever
Getting Started
   Oxygen Tank Articles
        PHP Web Services: Getting Started http://wso2.org/library/3032
        PHP Web Services: After Getting Started http://wso2.org/library/3056
        PHP Web Services: Messaging – SOAP and REST http://wso2.org/library/3261
        Writing Simple PHP Test Scripts For PHP Web Services http://wso2.org/library/3579
        WSO2 WSF/PHP Interoperability with Microsoft WCF http://wso2.org/library/3125
        WSO2 WSF/PHP – PHP Web Services Extension http://wso2.org/library/2570
        PHP Web Services with WSDL http://wso2.org/library/3393
        Running WSF/PHP on The Uniform Server http://wso2.org/library/3262
        Installing WSF/PHP with PHP5 on IIS http://wso2.org/library/3465
        How to Setup WSO2 WSF/PHP Build Environment on Windows XP
         http://wso2.org/library/tutorials/setup-wso2-wsf-php-build-environment-windows-xp
   WSF/PHP Demo Site
        http://labs.wso2.org/wsf/php
   PHP Web Services Blog
        http://phpwebservices.blogspot.com/

More Related Content

What's hot

Ruby on Rails Security
Ruby on Rails SecurityRuby on Rails Security
Ruby on Rails Security
amiable_indian
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
Acquia
 
Earnings With Foss - Joebert
Earnings With Foss - JoebertEarnings With Foss - Joebert
Earnings With Foss - Joebert
soss
 

What's hot (16)

OWASP Top 10 Proactive Controls 2016 - NorthEast PHP 2017
OWASP Top 10 Proactive Controls 2016 - NorthEast PHP 2017 OWASP Top 10 Proactive Controls 2016 - NorthEast PHP 2017
OWASP Top 10 Proactive Controls 2016 - NorthEast PHP 2017
 
Browser Serving Your Web Application Security - NorthEast PHP 2017
Browser Serving Your Web Application Security - NorthEast PHP 2017Browser Serving Your Web Application Security - NorthEast PHP 2017
Browser Serving Your Web Application Security - NorthEast PHP 2017
 
ASPNET Roadmap
ASPNET RoadmapASPNET Roadmap
ASPNET Roadmap
 
Web performance optimization
Web performance optimizationWeb performance optimization
Web performance optimization
 
Browser Serving Your Web Application Security - Madison PHP 2017
Browser Serving Your Web Application Security - Madison PHP 2017Browser Serving Your Web Application Security - Madison PHP 2017
Browser Serving Your Web Application Security - Madison PHP 2017
 
JBoss Negotiation in AS7
JBoss Negotiation in AS7JBoss Negotiation in AS7
JBoss Negotiation in AS7
 
MySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features SummaryMySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features Summary
 
JBoss AS 7 따라잡기
JBoss AS 7 따라잡기JBoss AS 7 따라잡기
JBoss AS 7 따라잡기
 
How to CASifying PeopleSoft and Integrating CAS and ADFS
How to CASifying PeopleSoft and Integrating CAS and ADFSHow to CASifying PeopleSoft and Integrating CAS and ADFS
How to CASifying PeopleSoft and Integrating CAS and ADFS
 
Ruby on Rails Security
Ruby on Rails SecurityRuby on Rails Security
Ruby on Rails Security
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
 
Earnings With Foss - Joebert
Earnings With Foss - JoebertEarnings With Foss - Joebert
Earnings With Foss - Joebert
 
HTML 特殊文字のEscapeだけでは防げない
脆弱性について(基本)
HTML 特殊文字のEscapeだけでは防げない
脆弱性について(基本)HTML 特殊文字のEscapeだけでは防げない
脆弱性について(基本)
HTML 特殊文字のEscapeだけでは防げない
脆弱性について(基本)
 
Developer Week 2019 - Testautomatisierung mit Appium und Selenium für VS-Entw...
Developer Week 2019 - Testautomatisierung mit Appium und Selenium für VS-Entw...Developer Week 2019 - Testautomatisierung mit Appium und Selenium für VS-Entw...
Developer Week 2019 - Testautomatisierung mit Appium und Selenium für VS-Entw...
 
Powershell: Tu nuevo mejor amigo
Powershell: Tu nuevo mejor amigoPowershell: Tu nuevo mejor amigo
Powershell: Tu nuevo mejor amigo
 
MySQL 8.0.16 New Features Summary
MySQL 8.0.16 New Features SummaryMySQL 8.0.16 New Features Summary
MySQL 8.0.16 New Features Summary
 

Similar to WSF PHP 2 Webinar Sep 2008

Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jao
jedt
 
Stateful SOAP Webservices
Stateful SOAP WebservicesStateful SOAP Webservices
Stateful SOAP Webservices
Mayflower GmbH
 
WSO2 SOA with C and C++
WSO2 SOA with C and C++WSO2 SOA with C and C++
WSO2 SOA with C and C++
WSO2
 
HTML5 vs Silverlight
HTML5 vs SilverlightHTML5 vs Silverlight
HTML5 vs Silverlight
Matt Casto
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
deimos
 
Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales Forcecom
QConLondon2008
 
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected BusinessWSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2
 

Similar to WSF PHP 2 Webinar Sep 2008 (20)

Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jao
 
Stateful SOAP Webservices
Stateful SOAP WebservicesStateful SOAP Webservices
Stateful SOAP Webservices
 
WSO2 SOA with C and C++
WSO2 SOA with C and C++WSO2 SOA with C and C++
WSO2 SOA with C and C++
 
An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP ProgrammersAn Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
 
HTML5 vs Silverlight
HTML5 vs SilverlightHTML5 vs Silverlight
HTML5 vs Silverlight
 
PHP on Windows and on Azure
PHP on Windows and on AzurePHP on Windows and on Azure
PHP on Windows and on Azure
 
Running PHP In The Cloud
Running PHP In The CloudRunning PHP In The Cloud
Running PHP In The Cloud
 
Php & my sql - how do pdo, mysq-li, and x devapi do what they do
Php & my sql  - how do pdo, mysq-li, and x devapi do what they doPhp & my sql  - how do pdo, mysq-li, and x devapi do what they do
Php & my sql - how do pdo, mysq-li, and x devapi do what they do
 
WSS And Share Point For Developers
WSS And Share Point For DevelopersWSS And Share Point For Developers
WSS And Share Point For Developers
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
 
Node.js vs Play Framework
Node.js vs Play FrameworkNode.js vs Play Framework
Node.js vs Play Framework
 
Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales Forcecom
 
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected BusinessWSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
 
WSO2 AppDev platform
WSO2 AppDev platformWSO2 AppDev platform
WSO2 AppDev platform
 
A Microsoft primer for PHP devs
A Microsoft primer for PHP devsA Microsoft primer for PHP devs
A Microsoft primer for PHP devs
 
Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural ComparisonWeb API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
Interoperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSITInteroperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSIT
 

More from WSO2

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected Products
WSO2
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital Businesses
WSO2
 

More from WSO2 (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
How to Create a Service in Choreo
How to Create a Service in ChoreoHow to Create a Service in Choreo
How to Create a Service in Choreo
 
Ballerina Tech Talk - May 2023
Ballerina Tech Talk - May 2023Ballerina Tech Talk - May 2023
Ballerina Tech Talk - May 2023
 
Platform Strategy to Deliver Digital Experiences on Azure
Platform Strategy to Deliver Digital Experiences on AzurePlatform Strategy to Deliver Digital Experiences on Azure
Platform Strategy to Deliver Digital Experiences on Azure
 
GartnerITSymSessionSlides.pdf
GartnerITSymSessionSlides.pdfGartnerITSymSessionSlides.pdf
GartnerITSymSessionSlides.pdf
 
[Webinar] How to Create an API in Minutes
[Webinar] How to Create an API in Minutes[Webinar] How to Create an API in Minutes
[Webinar] How to Create an API in Minutes
 
Modernizing the Student Journey with Ethos Identity
Modernizing the Student Journey with Ethos IdentityModernizing the Student Journey with Ethos Identity
Modernizing the Student Journey with Ethos Identity
 
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
Choreo - Build unique digital experiences on WSO2's platform, secured by Etho...
 
CIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdfCIO Summit Berlin 2022.pptx.pdf
CIO Summit Berlin 2022.pptx.pdf
 
Delivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoDelivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing Choreo
 
Fueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected ProductsFueling the Digital Experience Economy with Connected Products
Fueling the Digital Experience Economy with Connected Products
 
A Reference Methodology for Agile Digital Businesses
 A Reference Methodology for Agile Digital Businesses A Reference Methodology for Agile Digital Businesses
A Reference Methodology for Agile Digital Businesses
 
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
 
Lessons from the pandemic - From a single use case to true transformation
 Lessons from the pandemic - From a single use case to true transformation Lessons from the pandemic - From a single use case to true transformation
Lessons from the pandemic - From a single use case to true transformation
 
Adding Liveliness to Banking Experiences
Adding Liveliness to Banking ExperiencesAdding Liveliness to Banking Experiences
Adding Liveliness to Banking Experiences
 
Building a Future-ready Bank
Building a Future-ready BankBuilding a Future-ready Bank
Building a Future-ready Bank
 
WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021WSO2 API Manager Community Call - November 2021
WSO2 API Manager Community Call - November 2021
 
[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs[API World ] - Managing Asynchronous APIs
[API World ] - Managing Asynchronous APIs
 
[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment[API World 2021 ] - Understanding Cloud Native Deployment
[API World 2021 ] - Understanding Cloud Native Deployment
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

WSF PHP 2 Webinar Sep 2008

  • 1. Enterprise Web Services With WSO2 WSF/PHP 2.0 Selvaratnam Uthaiyashankar shankar@wso2.com September 2008
  • 2. WSO2 Background  Founded in August 2005 by Leaders in XML and Web services technologies & standards and open source  Building complete SOA platform, all 100% open source  Founders/ leading contributors to all key Apache Web Services/SOA Projects  Provide commercial support, training and services around the software & solutions  Global corporation with R&D center in Sri Lanka and offices in US & UK, totalling 60 + employees
  • 3. What is the problem with the existing PHP Systems? Financial System Content Management System Social Networking System CRM system
  • 4. What is the problem with the existing PHP SOAP support? SAP SOAP 1.1 .NET No security No reliability No WS-I BP PHP Website No MTOM Binary Secure, Reliable, Binary No WS-Addressing J2EE Web Services CICS Java
  • 5. What is WSF/PHP?  A library that allows users to Create and Consume SOAP and REST Web Services in PHP  With full Secure Reliable Interop against .NET, Java and JEE  Simple PHP-friendly programming model $client = new WSClient(array(quot;useMTOMquot; => TRUE, quot;useSOAPquot; => quot;1.2quot;, quot;useWSAquot; => TRUE, quot;policyquot; => $wspolicy, quot;securityTokenquot; => $sec_token));
  • 6. Comparison with other SOAP libraries Package Written in WSDL Attachment Security Reliability PHP5 SOAP Ext C Partial No No No NuSOAP PHP Yes No No No SCA with PHP(IBM) PHP Yes No No No WSO2 WSF/PHP C Yes Yes Yes Yes
  • 7. WSF/PHP Features  Stability  Multiple Deployment Models  Linux  Windows  Solaris  Apache  IIS  Tested with Zend Core for stability and functionality
  • 8. WSF/PHP Features (Cont...)  Comprehensive Support for WS-* Standards  WS-Addressing •Version Submission, 1.0  WS-Security •Version 1.0, 1.1 •Base security standards mean that messages can be protected using Encryption, Authentication and Signature  WS-Trust, WS-SecureConversation •Version 1.0, 1.3 •Advanced security standards allow single-sign on, more efficient encryption and more secure deployment  WS-Policy and WS-SecurityPolicy •Enables using industry standard XML to configure security  WS-ReliableMessaging 1.0, 1.1 and WS-RMPolicy •Enables reliability between PHP and other platforms including message resending, duplicate detection and persistence
  • 9. WSF/PHP Features (Cont...)  Support for Contract First And Code First approaches  WSDL 1.1 and WSDL 2.0  SOAP 1.1 and SOAP 1.2  WSDL Generation support using annotated code.  Wide coverage of complex schema constructs.  WSDL2PHP Script to generate client and services for given WSDL.
  • 10. WSF/PHP Features (Cont...)  Enterprise Level Security  Authentication  Confidentiality  Integrity  Non-Repudiation  Replay Detection
  • 11. WSF/PHP Features (Cont...)  Binary Data Capability  Support for Base64, SWA and MTOM  Secure MTOM support  MTOM with reliable support  WSDL Mode API  Quick and easy API to handle binary with MTOM enabled WSDLs.  Caching  Low Memory footprint for large binary attachments
  • 12. WSF/PHP Features (Cont...)  Comprehensive Support for REST  Full REST support (GET, PUT, DELETE, POST) with custom URI Mapping  Enables mapping a REST API into PHP easily and naturally function echoFunction($inMessage) { $outMessage = new WSMessage($inMessage->str); return $outMessage; } $operations = array(quot;echoStringquot; => quot;echoFunctionquot;); $restmap = array (quot;echoStringquot;=>array(quot;HTTPMethodquot;=>quot;GETquot;, quot;RESTLocationquot;=> quot;echoStringquot;)); $service = new WSService(array(quot;operationsquot; => $operations, quot;RESTMappingquot;=>$restmap)); $service->reply();
  • 13. WSF/PHP Features (Cont...)  PHP Data Services  Multiple database engine support (with PHP PDO extension)  Nested Query support  Array based API  dbs2php converter tool to convert WSAS Java data service XML configurations to PHP code  WSDL Generation support $config = array(quot;dbquot; => quot;mysqlquot;, quot;usernamequot; => quot;rootquot;, quot;passwordquot; => quot;abcquot;, quot;dbnamequot; => quot;dsquot;, quot;dbhostquot; => quot;localhostquot;); $inputFormat = array(quot;employeeByNumberquot; => quot;INTquot;); $outputFormat = array(quot;resultElementquot; => quot;employeesquot;, quot;rowElementquot; => quot;employeequot;, quot;elementsquot; => array(quot;last-namequot; => quot;lastNamequot;, quot;first-namequot; => quot;firstNamequot;, quot;emailquot; => quot;emailquot;)); $sql = quot;SELECT lastName,firstName,email FROM Employees WHERE employeeNumber=?quot;; $operations = array(quot;employeesByNumberquot; => array(quot;inputFormatquot; => $inputFormat, quot;outputFormatquot; => $outputFormat, quot;sqlquot; => $sql)); $my_data_service = new DataService(array(quot;configquot; => $config, quot;operationsquot; => $operations)); $my_data_service->reply();
  • 14. WSF/PHP Features (Cont...)  Interoperability  With .Net and Java  Messaging  Binary Data (MTOM)  WS-Addressing  WS-Security  WS-Reliable Messaging
  • 15. WSF/PHP 2.0 improvements  Improved Stability  Interoperability  Better WSDL support  WS-SecureConversation support  PKCS support  Replay attack suppression  Support for ratified WS-* specifications  PHP Data Services support  Improved REST API  MTOM Caching
  • 16. Customer Examples  Consuming SaaS from PHP Web applications  E.g.Betting, Gaming sites  Governmental and Standards-based work  Integrating CMS systems (Drupal, Joomla) with SOA platforms  Consuming existing third party services  Exposing CMS functionality as services  Portal integration with SOA back-ends  Service enabling PHP legacy applications  Securingservice oriented applications that require end-to-end message level security
  • 17. The Traditional PHP Application
  • 19. Summary  A major new release of a popular library  Adds improved WS-* and REST support  Improved stability  Makes it simple to connect PHP to a wider SOA  New capability to expose Data Services makes creating services more effective than ever
  • 20. Getting Started  Oxygen Tank Articles  PHP Web Services: Getting Started http://wso2.org/library/3032  PHP Web Services: After Getting Started http://wso2.org/library/3056  PHP Web Services: Messaging – SOAP and REST http://wso2.org/library/3261  Writing Simple PHP Test Scripts For PHP Web Services http://wso2.org/library/3579  WSO2 WSF/PHP Interoperability with Microsoft WCF http://wso2.org/library/3125  WSO2 WSF/PHP – PHP Web Services Extension http://wso2.org/library/2570  PHP Web Services with WSDL http://wso2.org/library/3393  Running WSF/PHP on The Uniform Server http://wso2.org/library/3262  Installing WSF/PHP with PHP5 on IIS http://wso2.org/library/3465  How to Setup WSO2 WSF/PHP Build Environment on Windows XP http://wso2.org/library/tutorials/setup-wso2-wsf-php-build-environment-windows-xp  WSF/PHP Demo Site  http://labs.wso2.org/wsf/php  PHP Web Services Blog  http://phpwebservices.blogspot.com/