Forum Discussion
omatzura
16 years agoSuper Contributor
Hi!
problem here is that the XML you want to transfer from is wrapped in a CDATA block, meaning that it is not really viewed as XML by the XPath engine but just as a string.. you need to do the following:
1) Create a temporary property in your Properties Step names "tempXml" (or something..)
2) In your PropertyTransfer step first create transfer that transfers the following source xpath from this response to your temporary property:
-> This should transfer the entire content of the out element to the tempXml property
3) Create a transfer after this one that has the source set to the tempXml property (which can now be handled as XML instead of just a string withing another XML document) with the following source xpath:
and the target set to your filename property
Does that help?
regards!
/Ole
eviware.com
problem here is that the XML you want to transfer from is wrapped in a CDATA block, meaning that it is not really viewed as XML by the XPath engine but just as a string.. you need to do the following:
1) Create a temporary property in your Properties Step names "tempXml" (or something..)
2) In your PropertyTransfer step first create transfer that transfers the following source xpath from this response to your temporary property:
declare namespace ns1='http://http://ws.licensing.amp.avocent.com';
//ns1:activateLicenseResponse/ns1:out
-> This should transfer the entire content of the out element to the tempXml property
3) Create a transfer after this one that has the source set to the tempXml property (which can now be handled as XML instead of just a string withing another XML document) with the following source xpath:
//activationfile/@filename
and the target set to your filename property
Does that help?
regards!
/Ole
eviware.com
Related Content
- 5 years agoSudhireddy