
Galmok - 2009-08-07 09:38:26
I have several functions with many of the same arguments and while php2wsdl exports the functions with their arguments, the part names that take the name of the arguments are renamed, or rather, using the same argument name in different functions causes the epeated used argument name to be added a "1". An example:
php:
function A(a, b, c) {}
function B(a, b, d) {}
function C(a, b, e) {}
wsdl:
...
<message name="A">
<part name="a" type="xsd:string"/>
<part name="b" type="xsd:datetime"/>
<part name="c" type="xsd:float"/>
...
<message name="B">
<part name="a1" type="xsd:string"/>
<part name="b1" type="xsd:datetime"/>
<part name="d" type="xsd:float"/>
...
<message name="C">
<part name="a1" type="xsd:string"/>
<part name="b1" type="xsd:datetime"/>
<part name="e" type="xsd:float"/>
...
Why are the part names called "a1" and "b1" when they should be called just "a" and "b"?