I must generate a PHP class for the SOAP following a WSDL specification, and this WSDL has 2 different complex types like this (one is called "method1" and the other "Method1"):
<xs:complexType name="method1">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:Method1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Method1">
<xs:sequence>
<xs:element name="name" type="xs:long"/>
<xs:any namespace="##other" processContents="lax"/>
</xs:sequence>
</xs:complexType>
So, PHP classes would be generated like this, but I would get the error "Extra content at the end of the document" when the web service is executed, because both classes have the same name.
class method1 {
/** @var Method1 */
var $return;
}
class Method1 {
/** @var int */
var $name = '';
/** @var mixed */
var $any = '';
}
Any way to solve this? The problem is that I must follow the WSDL specification from another company, so it should have these 2 complex types. Thanks