Ibm cloud Bluemix上业务规则执行的规则集的XML响应中的未知元素
我在Bluemix上的业务规则服务上执行了一个规则集。XML响应有一个名为UnknowneElement的元素,该元素不在WSDL定义中Ibm cloud Bluemix上业务规则执行的规则集的XML响应中的未知元素,ibm-cloud,business-rules,Ibm Cloud,Business Rules,我在Bluemix上的业务规则服务上执行了一个规则集。XML响应有一个名为UnknowneElement的元素,该元素不在WSDL定义中 < ilog.rules.outputString > ... < /ilog.rules.outputString > < ilog.rules.firedRulesCount> ... < /ilog.rules.firedRulesCount > < yourResponse xmlns=".
< ilog.rules.outputString > ... < /ilog.rules.outputString >
< ilog.rules.firedRulesCount> ... < /ilog.rules.firedRulesCount >
< yourResponse xmlns="..">
< unknownElement xmlns="" >
...
< /unknownElement >
< /yourResponse >
发生这种情况是因为我在XML模式XSD中定义了规则集参数类型,但没有声明该类型的全局元素 参数Foo的类型在XSD XOM中定义如下: 为了解决这个问题,我在XSD中为该类型添加了一个全局元素:
< schema xmlns=.. xmlns:tns=.. targetNamespace=.. >
< complexType name="Foo">
< attribute name="bar" type="string"></attribute >
< /complexType >
< /schema >
< schema xmlns=.. xmlns:tns=.. targetNamespace=.. >
< element name="FooElement" type="tns:Foo"></element >
< complexType name="Foo">
< attribute name="bar" type="string"></attribute >
< /complexType >
< /schema >