Figure 10: Fruitclient.php uses a few SOAP commands (near the top) to get data from fruitserver.php.

Step 4: Run the WSDL Generator Wizard from the Tools menu, as shown in Figures 11 to 17.

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V408.png

Figure 11: The WSDL Generator Wizard creates a configuration.

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V409.png

Figure 12: Select PHP files to analyze.

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V410.png

Figure 13: Point the Wizard to fruitserver.php, where our service function resides.

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V411.png

Figure 14: The WSDL generator reports its intention before creating the WSDL.

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V412.png

Figure 15: The WSDL file was created.

I was glad I didn't have to create fruitfacts.wsdl by hand (Figure 16).





xmlns:typens="urn:testsoap" 

xmlns:xsd="http://www.w3.org/2001/XMLSchema" 

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 

xmlns="http://schemas.xmlsoap.org/wsdl/">
     
           
     
     
           
     
     
           
                  This class describes a fruit-fact provider: It provides 

information about common fruits.
           
           
                 
                        Return the apple's name based on color.
                 
                 
                 
           
     
     

type="typens:fruitfactsPortType">
           

transport="http://schemas.xmlsoap.org/soap/http"/>
           
                 
                 
                       

use="encoded" 

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                 
                 
                       

use="encoded" 

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                 
            
       
       
             

binding="typens:fruitfactsBinding">
                 

location="http://www.myserver.com:89/soaptest/fruitserver.php"/>
           
     

Figure 16: Fruitfacts.wsdl defines the services offered by fruitserver.php.

Now we run our SOAP client in a browser. It accesses WSDL and the SOAP server, retrieving our apple varieties (Figure 17).

http://www.mcpressonline.com/articles/images/2002/Seiden_Alan_iAppDesigner_PHP_REVISED_7-4-06_V413.png

Figure 17: The client, the server, and the WSDL file work together.

Probable Schedule of Zend Releases for i5/OS

According to Andi Gutmans and Michael Pinette, Zend's releases for System i will be as follows:

Zend's Releases for System i
When
Product
Version
early July 2006
Zend Core, Zend Studio
Version 2 beta
end of July 2006
Zend Core, Zend Studio using PHP V5.1.4. Free for System i users.
GA
3rd quarter 2006
Zend Guard to encode PHP. Good for security and retaining intellectual property. Useful for independent software vendors (ISVs). Cost to be announced.
GA
late August 2006
Zend Platform, Zend's flagship product for the enterprise, with acceleration, caching, performance monitoring, and Java Bridge. Cost to be announced.
GA
end of 2006
Zend Framework, which further speeds application development with standard architecture.
still in discussion
then...?
Watch the Zend for i5/OS forums for news

Figure 19: Zend is steadily providing all its products to IBM System i.

A New Approach to System i Web Development

In porting PHP to System i, IBM and Zend have given the community a powerful, low-risk approach to Web development. Developers who use PHP strengthen the platform while mastering technology that can run almost anywhere. PHP re-energizes System i with advanced capabilities for the Web that are easy to use. The advantages of System i—reliability, virtualization, scalability—remain.

Resources

Zend for i5/OS
Zend for i5/OS Discussion Forums (Core and Studio at this time)
Zend Forums for all platforms and products

•"IBM DB2 Universal Database, Cloudscape, and Apache Derby" by Dan Scott (PDF)

Zend Developer Zone
Zend Framework (currently in preview but reportedly stable and worth trying)

• Charts and Graphs in PHP: PHP/SWF Charts, JpGraph, PHP SOAP Extension

Alan Seiden is a consultant and developer at a northern New Jersey IT firm, where he enjoys his role as a creative software catalyst for clients. Alan is vice president of the New York City Usability Professionals Association. Email: alanseiden@acm.org.


Alan Seiden
About the Author:

Alan Seiden, an authority on PHP development with IBM i, helps companies achieve best practices and top performance when combining PHP, Zend Framework, IBM i, RPG, and DB2. An award-winning speaker, Alan is project manager of Zend's open-source PHP Toolkit for IBM i. Alan Seiden Consulting, Ho-Ho-Kus, N.J.: http://www.alanseiden.com | alan@alanseiden.com | @alanseiden

Read More >>
Last Updated on Tuesday, 11 July 2006 18:00
 
User Rating: / 0
PoorBest 

Related Articles:


   MC-STORE.COM