[wsf-c-dev][PHP]Wsdl Generation - schema types

James Clark james at wso2.com
Thu Dec 14 02:15:54 PST 2006


> How about this?  Search the comment for a word of the form xs:T or xsd:T
> where T is one of the predefined Schema types.  If you find it, then
> assume that the XML schema type is T.  This allows people to write
> something that looks reasonable as documentation, e.g.
> 
>  /**
>   * @param int $count the number of widgets to buy 
>   * (maps to the xs:nonNegativeInteger XML schema type)
>   */

Later on we could extend this to user-defined types, by providing an
option

   docCommentPrefixMap => 
      ("foo" => "http://www.example.com/schemas/foo")

Then it would also search doc comments for words of the form foo:T where
T is a datatype defined in the foo schema.

James







More information about the Wsf-c-dev mailing list