Forum Discussion
rajeshbachani
14 years agoOccasional Contributor
I am in a similar problem but have not found a solution yet. I have referred to the link you have mentioned here Ole, but seems that does not fall entirely under the purview of my problem. Maybe you can throw some light on this one ![](http://community.smartbear.com/legacyfs/online/smilies/smiley.gif)
My server is written in Java (using Spring) and the webservices exposed are consumed in SoapUI (obviously!
).
A typical situation we have is one major entity is encapsulated in another entity.
So, consider object A contains object B. Object A is then passed to the Client as part of a web service, and the client needs object B (contained inside object A) to be passed as a parameter into the next webservice call.
So, the goal in SoapUI - when we try making a test suite - is to extract object B (serialized in XML) from the received response - and use that as it is (or with some updates in certain fields) into the request for the next web service call.
How do we achieve this?![](http://community.smartbear.com/legacyfs/online/smilies/smiley.gif)
I am doing this:
Retrieving object B from the return part of the response and storing it in a property at the project level.
If I now try to parameter transfer this property in the request I end up with a CDATA[] tag in front of the entire object.
How can this be avoided?
Exampple:
<A>
<VAR1>2</VAR1>
<VAR2>IS_A_MOBILE</VAR2>
<B>
<B1>2</B1>
<B2>IS_A_RADIO</B2>
<B3>119281c82eb9e1bd012ebb27b1c60007</B3>
</B>
</A>
And "B" from this response is to be "inserted" into the request as:
<request>
<C>
<C1>IS_A_MOBILE</C1>
<C2>NOKIA</C2>
<B>
<B1>2</B1>
<B2>IS_A_RADIO</B2>
<B3>119281c82eb9e1bd012ebb27b1c60007</B3>
</B>
</request>
Please bear with the formatting and the content of the example - but this is just to show what I would like to do.
Thanks in advance,
Raj!
![](http://community.smartbear.com/legacyfs/online/smilies/smiley.gif)
My server is written in Java (using Spring) and the webservices exposed are consumed in SoapUI (obviously!
![](http://community.smartbear.com/legacyfs/online/smilies/wink.gif)
A typical situation we have is one major entity is encapsulated in another entity.
So, consider object A contains object B. Object A is then passed to the Client as part of a web service, and the client needs object B (contained inside object A) to be passed as a parameter into the next webservice call.
So, the goal in SoapUI - when we try making a test suite - is to extract object B (serialized in XML) from the received response - and use that as it is (or with some updates in certain fields) into the request for the next web service call.
How do we achieve this?
![](http://community.smartbear.com/legacyfs/online/smilies/smiley.gif)
I am doing this:
Retrieving object B from the return part of the response and storing it in a property at the project level.
If I now try to parameter transfer this property in the request I end up with a CDATA[] tag in front of the entire object.
How can this be avoided?
Exampple:
<A>
<VAR1>2</VAR1>
<VAR2>IS_A_MOBILE</VAR2>
<B>
<B1>2</B1>
<B2>IS_A_RADIO</B2>
<B3>119281c82eb9e1bd012ebb27b1c60007</B3>
</B>
</A>
And "B" from this response is to be "inserted" into the request as:
<request>
<C>
<C1>IS_A_MOBILE</C1>
<C2>NOKIA</C2>
<B>
<B1>2</B1>
<B2>IS_A_RADIO</B2>
<B3>119281c82eb9e1bd012ebb27b1c60007</B3>
</B>
</request>
Please bear with the formatting and the content of the example - but this is just to show what I would like to do.
Thanks in advance,
Raj!
Related Content
- 2 years ago
- 7 years ago
Recent Discussions
- 11 days ago