Hi
I encounter a problem with the reception of a NotificationMessage. Indeed, I
need to parse the message in order to extract a Element (tns:Status) but the
following error appears :
[Fatal Error] :5:65: Attribute "xmlns:wsnt" was already specified for
element "wsnt:NotificationMessage".
Which is true since xmlns:wsnt appears twice in the NotificationMessage I
receive:
<wsnt:NotificationMessage
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
xmlns:tns="http://ws.apache.org/muse/test/wsrf"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
<wsnt:SubscriptionReference>
<wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/prese
nce-server/services/SubscriptionManager
<http://localhost:8080/presence-server/services/SubscriptionManager%3c/wsa:A
ddress> </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">MuseResource-1</muse-w
sa:ResourceId>
</wsa:ReferenceParameters>
</wsnt:SubscriptionReference>
<wsnt:Topic
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"
xmlns:tns="http://ws.apache.org/muse/test/wsrf">tns:[EMAIL PROTECTED]</wsnt:
Topic>
<wsnt:ProducerReference>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
<wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/prese
nce-server/services/WsResource
<http://localhost:8080/presence-server/services/WsResource%3c/wsa:Address>
</wsa:Address>
</wsnt:ProducerReference>
<wsnt:Message>
<tns:StatusChange xmlns:tns="http://ws.apache.org/muse/test/wsrf">
<tns:Name>[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]/tns:Name> </tns:Name>
<tns:Status><?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="pres:[EMAIL PROTECTED]">
<tuple id="u3dqoo">
<status>
<basic>closed</basic>
</status>
</tuple>
</presence></tns:Status>
</tns:StatusChange>
</wsnt:Message>
</wsnt:NotificationMessage>
I use Tomcat 6 and Muse 2.2.
Has anyone encounter the same error ?
Any idea ?
D. Ligot