Property value not being set

The following sequence sets two properties, one works and one does not…

set zipProp has it’s value set, while set prodProp does not.

I have looked at this for so long my eyes are bleeding…please help

Input XML

<?xml version="1.0" ?>

<tns:ProductDesc_Response xmlns:tns=“http://tempuri.org/”>
tns:Product_Descqw323</tns:Product_Desc>
</tns:ProductDesc_Response>
<m:GetInfoByZIP xmlns:m=“http://www.webserviceX.NET”>
<m:USZip>123123</m:USZip>
</m:GetInfoByZIP>



Sequence

<?xml version="1.0" encoding="UTF-8"?>









Thanks Chris.

Hi Chris,

I suspect the property “prodProp” is not set, because of the way you declared the namespaces. You should set the appropriate namespace on each step. The sequence listed below should solve your problem:

<?xml version="1.0" encoding="UTF-8"?>











Regards
Theo

[This message was edited by Theo Beack on 31 Aug 2004 at 22:39.]

Hi Chris,

The problem is that the document contains
xmlsn:tns=“http://tempuri.org/
and the sequence contains:
xmlsn:tns=“http://tempuri.org
The trailing “/” in the first namespace is missing in the second. Thus, there is no match.

Also, Theo is incorrect, the namespace declarations in the sequence simply have to be in scope, meaning on the statement with the xpath (the ) or any of its parents, up to and including the .

Hope this helps.

Best regards,
Mike

Thanks Mike, that’s a relief we don’t have to qualify the namespace everywhere…sorry for not QA’ing the post.