[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    [wsf-c-dev] [jira] Created: (WSFPHP-366) minOccurs="0" is not
From:       "Philip Eschenbacher (JIRA)" <jira () wso2 ! org>
Date:       2008-12-11 15:27:04
Message-ID: 1358036006.1229009224996.JavaMail.jira () wso2 ! org ! ec2 ! wso2 ! com
[Download RAW message or body]

minOccurs="0" is not possible in WSDL generation
------------------------------------------------

                 Key: WSFPHP-366
                 URL: https://wso2.org/jira/browse/WSFPHP-366
             Project: WSO2 WSF/PHP
          Issue Type: Bug
          Components: Build System / Linux
    Affects Versions: 2.0.0
         Environment: Fedora 8 Linux Environment
            Reporter: Philip Eschenbacher
         Attachments: minoccur.patch

The following PHP-Code creates a Function which expects 2 Params. The second is \
optional.

 /**
  * @param [1,1] object wsws_identification $identification the identification object
  * @param [0,1] dateTime $timestamp timestamp from which time the categories should \
                be returned
  * @return [1,3] array of object wsws_category $categories 
  */
  public function get_categories($identification, $timestamp=NULL)
    {
    if (!$timestamp)
      $timestamp = date('c');
    $categories = parent::get_categories($identification, $timestamp);
    return array('categories' => $categories);
    }

the timestamp param is optional an should not be requested when calling this \
function. this is indicated to the SOAP-client with the minOccurs="0" attribute in \
the WSDL-File and should be generated by WSF by parsing the @param [0,1] dateTime \
$timestamp but is not.

I appended a Patch for the /scripts/wsdl/WS_WSDL_Type.php file which solves this \
problem. It would be great if you can provide this patch in the next update release.

-- 
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

        

_______________________________________________
Wsf-c-dev mailing list
Wsf-c-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic