PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #1267

Breaks with '-' in WSDL operation name

Details

Submitted2004-04-23 05:53 UTC
Fromagreen at cirrustech dot com dot au
Assignedchagenbu
StatusClosed
PackageSOAP
PHP Version5.0.0RC1 (Release Candidate 1)
OSWinXP
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