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

Paul Fremantle paul at wso2.com
Tue Jan 23 09:03:25 PST 2007


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

2) It should be spelt WSDLCreator not Creater.

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

4)WSDL2 is broken in many ways :-) But I don't mind as I don't use WSDL2 
yet.

5) The SOAPActions generated are wrong:
<soap:operation soapAction="http://localhost/wsdlgen" style="document"/>

6) The WSDL port has no soap address in it:
<port name="wsdl_service.php" binding="tns:wsdl_service.php"/>

7) WSDL isn't very robust. For example, if I get mistakes in the PHPDoc, 
it will radically change my port type:
A simple example. If I miss off a variable name for the response:
* @return int
I don't get any response message at all.

Regards,

Paul


-- 
Paul Fremantle
VP/Technology and Partnerships, WSO2
OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul at wso2.com
(646) 290 8050

"Oxygenating the Web Service Platform", www.wso2.com





More information about the Wsf-c-dev mailing list