kSOAP2 对双 ID 异常有点过于严格?

kSOAP2 a little too strict with double ID exceptions?

kSOAP2 拒绝解析我收到的 SOAP 响应,因为它包含 2 个具有相同 id 值的元素。 问题是在 XML 模式中,这个 id 是 anyURI 类型,而不是 xs:ID,所以它没有任何唯一性语义: https://github.com/oehf/ipf/blob/8a22c51a47fab1af6fea7da81f9e5d8de636e225/commons/ihe/xds/src/main/resources/wsdl/schema/ebRS30/rim.xsd#L103

这是 kSOAP2 中的错误还是有办法禁用该异常?

文档说:

Common base type for all types that have unique identity.     
If id is provided and is not in proper URN syntax then it is used for
linkage within document and is ignored by the registry. In this case the
registry generates a UUID URN for id attribute.
id must not be null when object is retrieved from the registry.

仅仅因为某些东西是架构有效的并不意味着它满足应用程序强加的所有约束。我不熟悉此规范,但规范强加超出 XML 架构中的约束是完全合法的。此注释中肯定存在此类约束存在的建议。