PHP WS
Contents |
WS Support for PHP
Support for PHP:SOAP Extension
SOAP Client in PHP
- Implement Drag & Drop from WS Node into PHP script:
Sample for CurrencyConvertor web service :
/* Include PEAR::SOAP's SOAP_Client class: */
require_once "SOAP/Client.php";
/* Create a new SOAP client using PEAR::SOAP's SOAP_Client-class: */
$soapClient = new SoapClient("http://www.webservicex.net/CurrencyConvertor.asmx?wsdl");
/* Define the parameters */
$params = array('FromCurrency'=>'USD','ToCurrency'=>'CZK');
/* Send a request to the server, and store its response in $response: */
$response = $soapClient->ConversionRate($params);
/* Print the server-response: */
foreach ($respons as $item) echo $item;
SOAP Service in PHP (TODO)
Support for WSO2 Web Services Framework for PHP ?
Problem: PHP/WSF PHP classes are distributed in a form of binary library (WSF.so). Netbeans PHP support doesn't support the code completion for such libraries.
Support for NuSOAP ?
Netbeans PHP
Netbeans PHP Project Overview
Netbean PHP project is a simple container of PHP, HTML and CSS files that is based on a following properties:
- Source Folder: Root Folder with project sources (e.g. /home/mkuchtiak/public_html/PHPProject1 )
- Project URL: URL prefix for all project files (e.g. http://localhost/PHPProject1)
PHP Project doesn't care about Web Server whether PHP is installed or not)
Run action only opens the web browser with the url for given file:
Example:
There is sample.php located at : /home/mkuchtiak/public_html/PHPProject1/samples/sample.php
Run actions open the browser with following URL: http://localhost/PHPProject1/samples/sample.php
It is not expected PHP developers will be working at the same time with other project types (web applications, EJB, Java projects).
Most likely PHP developers will be using pure Netbeans platform with PHP functionality only.
Existing Netbeans PHP Support Features
- PHP, HTML, CSS wizards
- code completion for PHP, HTML, CSS
- HTML component palette
- CSS Editor
- Run action, available from project node, PHP/HTML node, PHP/HTML editor
- PHP Debuger
- ability to specify project Source Folder and Project URL
- ability to specify PHP Include Path: Useful for PHP extensions to enable code completion (e.g. PHP:SOAP extension)
This is a link to Netbeans installation with PHP support: http://deadlock.netbeans.org/hudson/job/PHP-build
Zend (PHP Ide)
Features
- support for PHP:SOAP extension
- internal WSDL parser providing code completion for SOAP:SoapClient object
- WSDL from PHP generator

