Hello community,
I have been using the Spectrum api on Spectrum 9.4 with this XML to find a container. We have upgraded to Spectrum 10.2.3 and now the same XML won't work. I get this error from powershell:
Invoke-RestMethod : JAXBException occurred : cvc-complex-type.2.4.d: Invalid content was found starting with element 'and'. No child element is expected at this point..
The issue is because I'm using two attributes. When I only search on one attribute it works fine. I have been looking at the xml schema definition but can't really make heads or tails from it. The schema on oneclick also hasn't changed after the upgrade, so I'm at a loss. Can someone help me?
<?xml version="1.0" encoding="UTF-8"?>
<rs:model-request
xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">
<rs:target-models>
<rs:models-search>
<rs:search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter">
<filtered-models>
<equals-ignore-case>
<attribute id="0x10000">
<value>Network</value>
</attribute>
<attribute id="0x1006e">
<value>_Servers from UIM</value>
</attribute>
</equals-ignore-case>
</filtered-models>
</rs:search-criteria>
</rs:models-search>
</rs:target-models>
</rs:model-request>