[wsf-c-dev] [WSF4PHP] WSDL creation bugs I've noticed

Buddhika Semasinghe buddhika at wso2.com
Tue Jan 23 19:13:29 PST 2007


Paul Fremantle wrote:
> Folks
>
> Here is a smattering of bugs/suggestions I've found:
>
> 1) There is a bug in creating RPC WSDLs. The WSDLCreater.php assumes 
> that I have a /tmp/directory and if I have displayErrors on then I get 
> this at the beginning of the output:
> <br />
> <b>Warning</b>:  DOMDocument::save(/tmp/rpc.wsdl) [<a 
> href='function.DOMDocument-save'>function.DOMDocument-save</a>]: 
> failed to open stream: No such file or directory in 
> <b>C:\apache\htdocs\scripts\WS_WsdlCreater.php</b> on line 
> <b>144</b><br />

Thanks Paul for pointing out these errors. we did not have so much 
testing for WSDL Generation, that is why we could not encounter those 
bugs.This is a silly mistake done by me since this do not give errors in 
linux .So I will fix this bug.
>
>
>
> 3) The WSDL creation seems to be picking up the PHP type from the PHP 
> doc, not the xs:type. e.g.
> /** The type Missmatch function
>  * @param BLAH $boolean the number of widgets to buy
>  * (maps to the xs:int XML schema type )
>
> Gives <element name="boolean" type="xsd:BLAH"/>
This happens when php type and the xsd type missmatched from the mapping 
table that we were discussing in 
http://wso2.org/wiki/display/wsfphp/WSDL+Generation+API .When above 
scenario occurs I have treated the *type* of the element as the php type 
in the annotation.And also there is a log written to apache logs. So now 
I think it is better to treat the xsd type as the type of that element.


thanks

Buddhika
>
>
>





More information about the Wsf-c-dev mailing list