[wsf-c-dev] [jira] Commented: (WSFPHP-280) Providing array based api for WSDL Generation

Dimuthu Gamage (JIRA) jira at wso2.org
Tue Jun 3 10:06:40 PDT 2008


    [ https://wso2.org/jira/browse/WSFPHP-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17117#action_17117 ] 

Dimuthu Gamage commented on WSFPHP-280:
---------------------------------------

The above API has problem in defining namespaces for the elements, So we will expand it to the following API,

$element = array("name" => "myelement",
                               "type" => "int",
                              "maxOccurs => 5,
                              "ns" => "http://wso2.org/projects/php/elements");

$type = array("sequence" => array( $element1, $element2, $element3), "ns" => "http://wso2.org/projects/php/types"));

> Providing array based api for WSDL Generation
> ---------------------------------------------
>
>                 Key: WSFPHP-280
>                 URL: https://wso2.org/jira/browse/WSFPHP-280
>             Project: WSO2 WSF/PHP
>          Issue Type: Bug
>         Environment: Linxu + windows
>            Reporter: Dimuthu Gamage
>            Assignee: Dimuthu Gamage
>             Fix For: 2.0.0
>
>
> Currently wsdl generation happens with the information provided with annotations. In addition to that my suggestion is to provide an API to input information as an array. 
> Here is the suggested API.
> $element = array("name" => "myelement",
>                                "type" => "int",
>                               "maxOccurs" => 5);
> $type = array($element1, $element2, $element3);
> for an example to generate simple adder element
> <element name="adder">
>   <sequence>
>      <element name="num1" type="int"/>
>      <element name="num2" type="int"/>
>   </sequence>
> </element>
> $num1 =array("name" => "num1",
>                           "type" => "int");
> $num2 = array("name" => "num2",
>                          "type" => "int");
> $adder_type = array($num1, $num2);
> $adder = array("name"=> "adder",
>                           "type" => $adder_type);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Wsf-c-dev mailing list