Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #1267 Breaks with '-' in WSDL operation name
Submitted: 2004-04-23 05:53 UTC
From: agreen at cirrustech dot com dot au Assigned: chagenbu
Status: Closed Package: SOAP
PHP Version: 5.0.0RC1 (Release Candidate 1) OS: WinXP
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-23 05:53 UTC] agreen at cirrustech dot com dot au
Description: ------------ If the WSDL has operation names with a '-' in them, the proxy function names have a '-' in them, which doesn't compile. This is similar to the problem with '-' in service and port names reported at the bottom of bug #715. Reproduce code: --------------- From the middle of my WSDL file: <wsdl:binding name="OrderTakerSoapBinding" type="tns:OrderTaker"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="order-single-item"> <wsdlsoap:operation soapAction="/"/> Actual result: -------------- From the generated proxy code: function WebService_OrderTakerService_OrderTakerPort() { $this->SOAP_Client("http://localhost:9080/WsdlWSWeb/services/OrderTakerPort", 0); } function &order-single-item($customer-name, $product-name) { return $this->call("order-single-item", Message: Parse error: parse error, unexpected '-', expecting '(' in C:\PHP\PEAR\SOAP\WSDL.php(617) : eval()'d code on line 7

Comments

 [2005-04-01 16:44 UTC] chagenbu
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.