Home » Web Services » SOAP » Bug #1267
Breaks with '-' in WSDL operation name
Details
| 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) |
Comments
[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