我正在从 PHP NuSoap 实现中检索数据,它返回的数据如下:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getHashCodeAllTablesResponse xmlns:ns1="urn:getSchemaForRhythms">
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[121]">
<item xsi:type="xsd:">
<md5Hash xsi:type="xsd:string">e294967afe9834bf8477252ac0c3686e</md5Hash>
<tableName xsi:type="xsd:string">SYSCONGLOMERATES</tableName>
<isView xsi:type="xsd:string">false</isView>
<viewDefinition xsi:type="xsd:string">null</viewDefinition>
</item>
我认为这是问题所在:<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[121]">
当我将 Axis2 soap 客户端指向该服务时,我收到此错误:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unsupported type http://schemas.xmlsoap.org/soap/encoding/ Array
这是我正在尝试做的一个非常简单的java示例:
public static void main(String[] args) {
// TODO code application logic here
try{
GetSchemaForRhythmsStub stub = new GetSchemaForRhythmsStub(null,"http://test.test.com/sqlSchemaService/schemaBuilder.php" );
GetSchemaForRhythmsStub.GetHashCodeAllTablesE response2= new GetSchemaForRhythmsStub.GetHashCodeAllTablesE();
stub.getHashCodeAllTables(response2);
}catch(Exception ex)
{
System.out.println(ex.toString());
}
}
我找不到任何与 Array 数据类型和 Axis 相关的文档。我错过了什么吗?
谢谢,