Firstly please accept my apologies for any misuse of terminology. I'm new to this, but learning. I am trying to convert a script from Perl to PHP. The script written in Perl makes use of SOAP:Lite. The first requests were very easy to get working with NuSoap, then I hit a stumbling block when trying to send an array. The relevent part of the WSDL is listed below..
<wsdl:part name="domains" type="impl:ArrayOf_xsd_anyType" />
|
When using SOAP::Lite the following request is sent and the server accepts the request..
<domains xsi:type="impl:ArrayOf_xsd_anyType" SOAP-ENC:arrayType="xsd:string[2]">
<item xsi:type="xsd:string">myserver</item>
<item xsi:type="xsd:string">test.com</item>
</domains>
|
When using NuSoap the following request is sent..
<domains xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[2]">
<item xsi:type="xsd:anyType">myserver</item>
<item xsi:type="xsd:anyType">test.com</item>
</domains>
|
The request generated by NuSoap causes the server to produce the following error..
soapenv:Server.generalException: [org.apache.axis.AxisFault : ; nested exception is:
org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType]; nested exception is:
coldfusion.xml.rpc.CFCInvocationException: [org.apache.axis.AxisFault : ; nested exception is:
org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType]
|
I know I could hard code the response, but I would like to keep it quite flexible with NuSoap generating the response. Could anyone advise me on how I could get NuSoap to handle this 'correctly' please?