i want to map an existent type to wsdl type
the wsdl complex type
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/service1/">
<xsd:complexType name="RequestDescriptor">
<xsd:all>
<xsd:element name="language" type="xsd:string" default="xx"></xsd:element>
<xsd:element name="siteAPIKey" type="xsd:string" default="xxxx"></xsd:element>
<xsd:element name="userID" type="xsd:int" default="-1"></xsd:element>
<xsd:element name="sessionID" type="xsd:string" default="-1"></xsd:element>
<xsd:element name="returnDataFormat" type="xsd:string" default="XX"></xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
and i call it like
<wsdl:message name="getXXRequest">
<wsdl:part name="requestDescriptor" type="xsd1:RequestDescriptor"/>
</wsdl:message>
<wsdl:message name="getXXResponse">
<wsdl:part name="getXXResponse" type="xsd:anytype"/>
</wsdl:message>
in the php i use this code to map complex type
$soapClient = new SoapClient($soapServiceURL,array("classmap"=>array("RequestDescriptor","RequestDescriptor")));
when i call any function i got in the server log this message
PHP Catchable fatal error: Argument 1 passed to xx::XXX() must be an instance of RequestDescriptor, instance of stdClass given
but it run and return the result as expected any clue how to fix this {PHP Catchable fatal error}