krenevla
13 years agoContributor
Property transfer - how to transfer "<" ?
Hello guys,
I need to describe my problem first
let's say I have in DB some Group object with one Child element so when I ask my server for info about this Group object, I got :
<group>
<element>
<description>element1</description>
</element>
</group>
I need to add another element to this group and I need to send original object + added another element as request. So it will looks as following
<group>
<element>
<description>element1</description>
</element>
<element>
<description>element2</description>
</element>
</group>
and now there is a problem. These elements and groups are not static so I have to ask server for their data and transfer whole object as property using "Transfer Child Nodes" function.
And I am not able to tell SoapUI, that if there is no existing target in defined XPath then it should create it.
I just can't set target as /group[1]/element[2] because original object contains just ../element[1].
So I thought I can add value "<element></element>" from defined properties to /group[1] so it will create second element object for me to which I can target second element. And there is a problem, if I transfer "<element></element>" then SoapUI replaces "<" with "<". I tried to set property value as CDATA but it seems it ignores that as well.
so there are two ways how to solve it.
A - tell SoapUI to transfer "<" as "<" and not as "<"
B - tell SoapUI to create missing XPath target
C - ?
Could someone help me out, please?
I need to describe my problem first
let's say I have in DB some Group object with one Child element so when I ask my server for info about this Group object, I got :
<group>
<element>
<description>element1</description>
</element>
</group>
I need to add another element to this group and I need to send original object + added another element as request. So it will looks as following
<group>
<element>
<description>element1</description>
</element>
<element>
<description>element2</description>
</element>
</group>
and now there is a problem. These elements and groups are not static so I have to ask server for their data and transfer whole object as property using "Transfer Child Nodes" function.
And I am not able to tell SoapUI, that if there is no existing target in defined XPath then it should create it.
I just can't set target as /group[1]/element[2] because original object contains just ../element[1].
So I thought I can add value "<element></element>" from defined properties to /group[1] so it will create second element object for me to which I can target second element. And there is a problem, if I transfer "<element></element>" then SoapUI replaces "<" with "<". I tried to set property value as CDATA but it seems it ignores that as well.
so there are two ways how to solve it.
A - tell SoapUI to transfer "<" as "<" and not as "<"
B - tell SoapUI to create missing XPath target
C - ?
Could someone help me out, please?