[wsf-c-dev] 1.3.0 features for WSF/PHP

Samisa Abeysinghe samisa at wso2.com
Sun Feb 17 00:46:41 PST 2008


Dimuthu Gamage wrote:
> Samisa Abeysinghe wrote:
>> Dimuthu Gamage wrote:
>>> Samisa Abeysinghe wrote:
>>>> Dimuthu Gamage wrote:
>>>>> +1, These two + demo web site would be the major features of the next
>>>>> release.
>>>>>
>>>>>
>>>>> Samisa Abeysinghe wrote:
>>>>>  
>>>>>> I have already set the expectations for 1.3.0 release :
>>>>>>
>>>>>> 1. 
>>>>>> http://phpwebservices.blogspot.com/2008/02/get-real-with-rest.html
>>>>>>     
>>>>> Since it is already up there in axis2/c, this would not be a big 
>>>>> problem.
>>>>>
>>>>>  
>>>>>> 2.
>>>>>> http://phpwebservices.blogspot.com/2008/02/code-generation-for-wsdl-mode.html 
>>>>>>
>>>>>>     
>>>>>
>>>>> So this is a php script, which construct the code with the 
>>>>> information
>>>>> from the SIG model,
>>>>>
>>>>> Here are we writing a simple c tool, which generates code to the XSL
>>>>> template as it is now in WSDL2Java tool?, Or is it simply a PHP 
>>>>> script,
>>>>> that we going to implement just for PHP?
>>>>>   
>>>>
>>>> I was thinking of using the sig model that we generate currently 
>>>> when using the WSDL mode and do the code generation. This means 
>>>> that it would be a PHP script.
>>>>
>>>> For the PHP users, it would not be acceptable to provide a C 
>>>> program or a Java program. They would prefer a PHP script to do the 
>>>> job, I think.
>>>
>>> +1 for implementing this in PHP.
>>> BTW we can use XSL to generate code from SIG model anyway which I 
>>> think is not much difficult.
>>>
>>> So we would follow the following conversion..
>>>
>>> WSDL (if WSDL1.1 we conver it to WSDL2) ---------> SIG MODEL (using 
>>> current xsl templates) ----------> PHP code (using new xsl templates)
>>
>> I have done a first attempt to do this and I was successful. This 
>> first implementation generates client code with the class mapping and 
>> demo code.
>> I tested with the WSDL mode sample we have and it works.
>>
>> The code is commited here: 
>> https://svn.wso2.org/repos/wso2/trunk/wsf/php/scripts/wsdl2php.php
>
> I checked it, and it is working. I think we can move on to generate 
> sample code for the wsdls as well.

You mean server side?

>
> If we can provide a web interface which can ask the user to select
>
> 1. Generate class in the same file or some separate file as the 
> WSClinet object.
>
> 2. Generate with sample code

You mean make the sample code generation optional?

Samisa...





More information about the Wsf-c-dev mailing list