Menu

#44 DataSelector.getAllTagFieldNames bug

open
nobody
5
2008-08-11
2008-08-11
Wang Yun
No

create TagField named "tf1"
create TagField named "tf2"
create DataSelector named "ds1"
add tf1 and tf2 to ds1
Call DataSelector.getAllTagFieldNames, the expected value is 2, but actual get 0

xml request sequences are as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:command xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>18</id>
<targetName></targetName>
<tagField>
<create>
<name>tf1</name>
</create>
</tagField>
</ns2:command>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:command xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>18</id>
<targetName></targetName>
<tagField>
<create>
<name>tf2</name>
</create>
</tagField>
</ns2:command>

<ns2:command xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>20</id>
<targetName></targetName>
<dataSelector>
<create>
<name>ds1</name>
</create>
</dataSelector>
</ns2:command>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:command xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>22</id>
<targetName>ds1</targetName>
<dataSelector>
<addTagFieldNames>
<fieldNames>
<list>
<value>tf1</value>
<value>tf2</value>
</list>
</fieldNames>
</addTagFieldNames>
</dataSelector>
</ns2:command>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:command xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>24</id>
<targetName>ds1</targetName>
<dataSelector>
<getAllTagFieldNames/>
</dataSelector>
</ns2:command>

at last we get the wrong response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:reply xmlns:ns2="urn:epcglobal:rp:xsd:1">
<id>24</id>
<resultCode>0</resultCode>
<dataSelector/>
</ns2:reply>

Discussion


Log in to post a comment.