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

nandika at wso2.com nandika at wso2.com
Wed Dec 13 23:50:27 PST 2006


> In order to  type mapping has to occur in php comment, the comment
> procedure should be changed. So now it is used as
>
> /*
> * @param PT  V
> * @return  PT
> */
>
> where PT - PHP Type  & V- value
>
> Therefore when we are going to map php types to XSD types , Is it better
> to use
>
> /**
> * @param XT PT V
> *
> */
>
> where XT is XSD Type. And there is an alternative way
>
> /**
> * @param PT V XT
> *
> */
>
> The latter seems better since it is according to the php doc comments
> style.
>
> --Buddhika
>
>


PHP internally supports following data types in zval
long
double
string
array
object

These types are visible to userland as
int
float
string
bool
array
object

In the ext/soap extension they have defined a type mapping
in which they map all xsd simple types to one of the above
and since we have copied their stuff, we have the same mapping.
So what is needed is to use the same mappings in genarating
the wsdl.

Thanks
Nandika





More information about the Wsf-c-dev mailing list