Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hello,
I was not able to reproduce it, can post whole response so I can try. I created this response:
and these are assertions:
Let me know does it helps,
robert
I was not able to reproduce it, can post whole response so I can try. I created this response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.aaa.com">
<soapenv:Header/>
<soapenv:Body>
<a:Items>
<a:DCResultItem>
<Code>I001</Code>
<Date1>2009.10.31</Date1>
<xyz>HOTGP</xyz>
<Date2>2009.02.12</Date2>
</a:DCResultItem>
<a:DCResultItem>
<Code>I002</Code>
<Date1>2009.10.11</Date1>
<xyz>HOTGP</xyz>
<Date2>2009.10.12</Date2>
</a:DCResultItem>
</a:Items>
</soapenv:Body>
</soapenv:Envelope>
and these are assertions:
// xpath
declare namespace a='http://www.aaa.com';
//a:Items/a:DCResultItem
// expected
<a:DCResultItem xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.aaa.com">
<Code>I001</Code>
<Date1>*</Date1>
<xyz>HOTGP</xyz>
<Date2>*</Date2>
</a:DCResultItem>
// for second element
<a:DCResultItem xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.aaa.com">
<Code>I002</Code>
<Date1>*</Date1>
<xyz>HOTGP</xyz>
<Date2>*</Date2>
</a:DCResultItem>
Let me know does it helps,
robert
Related Content
- 10 months agooriShalhon