Hi,

I'm using the queryResourceProperties() method to get idle resources from a
ServiceGroup.
My xpath-query  is: (sg is the ServiceGroupClient)

Node[] eprs =
sg.queryResourceProperties("/wsrf-sg:ServiceGroupRP/wsrf-sg:Entry[./wsrf-sg:Content/muws2:OperationalStatus
 =
'Available']/wsrf-sg:MemberServiceEPR[contains(./wsa:Address,'WSResource')]",
 "http://www.w3.org/TR/1999/REC-xpath-19991116";);


When their aren't any resources availaibe, the result is an correct empty
node-array. When there are available resources I get them but I get
additional "#text"-nodes for each "real" result.
For example, when I have one idle resource I get the following result for
the following loop

for (Node node : eprs) {
      System.out.println((i++)+"
\n"+node.getNodeName()+"\n"+XmlUtils.toString(node));
}

----- log-----
0
#text


1
wsrf-sg:MemberServiceEPR
<?xml version="1.0" encoding="UTF-8"?>
<wsrf-sg:MemberServiceEPR
xmlns:wsrf-sg="http://docs.oasis-open.org/wsrf/sg-2";>
    <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://localhost:8080/DefaultService/services/PAIResource</wsa:Address>
    <wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
        <muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing";>uuid:701e1d9b-fb93-93fc-6242-20de49fa9fba</muse-wsa:ResourceId>
    </wsa:ReferenceParameters>
</wsrf-sg:MemberServiceEPR>

2
#text
------end log------

Does my query result in some empty elements, or is this a bug?

Regards,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to