If I have a service:
public class MyService
{
public Object [] echoObjectArray(Object [] arg) ( return arg; }
}
And I attempt to call it via .Net, .Net succeeds in parsing the WSDL. However, it fails
upon receiving the response from echoObjectArray:
"The specified type was not recognized: name='anyType',
namespace='http://www.w3.org/1999/XMLSchema', at <multiRef xmlns=''>."
The response from Axis is:
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:Array" soapenc:arrayType="ns2:anyType[2]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://www.w3.org/1999/XMLSchema">
If I change Axis to use the "http://www.w3.org/2001/XMLSchema" namespace, it works.
Axis responds with this: (which .Net accepts)
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[2]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
So is this a bug in Axis or in .Net?
Let me know if I should submit a bug/patch for Axis.
Thanks,
Rob