Fatal Error issue
| From: | Rob Booth | Date: | Fri, 16 Jul 2004 19:25:24 +0000 |
| Subject: | Fatal Error issue | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1569@lists.php.net to get a copy of this message | ||
I could use some help on this. I just made a minor chage to my system
(changed timout in Transport/HTTP.php) to be 0, and timout in php.ini to
120 and now I get this error, where before I wasn't getting it. Now maybe I
wasn't getting it before because my service was timing out before it ran
into the error, but I can't seem to find the problem. Has anyone gotten
this error before?
Warning: Wrong datatype for first argument in call to array_key_exists
in /usr/local/pear/SOAP/Base.php on line 527 Fatal error:
The code looks fairly basic it's just trying to set the $typePrefix so that
it can be decoded properly. Below is the WSDL sections for what is being
returned. The retun object is a ReportResult, is there anything here that
looks wrong?
<schema targetNamespace="urn:Reporting">
<complexType name="ReportDefinition">
<all>
<element name="ReportID" type="xsd:unsignedInt"/>
<element name="Title" type="xsd:string"/>
<element name="SubTitle" type="xsd:string"/>
<element name="ReportVariableList"
type="tns:ReportVariableList"/>
<element name="IsEnabled" type="xsd:boolean"/>
</all>
</complexType>
<complexType name="ReportDefinitionList">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="tns:ReportDefinition[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOfStrings">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ReportResult">
<all>
<element name="ReportDefinition" type="tns:ReportDefinition"/>
<element name="Template" type="xsd:string"/>
<element name="Results" type="tns:ArrayOfStrings"/>
</all>
</complexType>
<complexType name="ReportVariable">
<all>
<element name="ReportID" type="xsd:unsignedInt"/>
<element name="ReportVariableID" type="xsd:unsignedInt"/>
<element name="Name" type="xsd:string"/>
<element name="Value" type="xsd:string"/>
<element name="Type" type="xsd:string"/>
<element name="CanUserModify" type="xsd:boolean"/>
<element name="IsValueDefault" type="xsd:boolean"/>
</all>
</complexType>
<complexType name="ReportVariableList">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="tns:ReportVariable[]"/>
</restriction>
</complexContent>
</complexType>
Thanks,
Rob