When running the JbiHttpNotificationTest I am encountering the following
error:

org.codehaus.xfire.fault.XFireFault: Could not unmarshall type.
javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-dra
ft-01.xsd", local:"ConsumerReference"). Expected elements are
<{http://schemas.xmlsoap.org/ws/2003/03/addressing}Action>,<{http://schemas.
xmlsoap.org/ws/2003/03/addressing}EndpointReference>,<{http://schemas.xmlsoa
p.org/ws/2003/03/addressing}FaultTo>,<{http://schemas.xmlsoap.org/ws/2003/03
/addressing}From>,<{http://schemas.xmlsoap.org/ws/2003/03/addressing}Message
ID>,<{http://schemas.xmlsoap.org/ws/2003/03/addressing}Recipient>,<{http://s
chemas.xmlsoap.org/ws/2003/03/addressing}RelatesTo>,<{http://schemas.xmlsoap
.org/ws/2003/03/addressing}ReplyTo>,
{http://schemas.xmlsoap.org/ws/2003/03/addressing}To>]
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStrea
mException(UnmarshallerImpl.java:395)



The contents of wsn-subscribe.xml are as follows, but it appears that
"wsnt:ConsumerReference" isn't a valid node according to the schema:

<?xml version="1.0"?>
<wsnt:Subscribe
        xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing";
        xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"; 
 
xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1
.2-draft-01.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
 
xsi:schemaLocation="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotifi
cation-1.2-draft-01.xsd
http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.
xsd
http://schemas.xmlsoap.org/ws/2002/12/policy
http://schemas.xmlsoap.org/ws/2002/12/policy 
http://schemas.xmlsoap.org/ws/2003/03/addressing
http://schemas.xmlsoap.org/ws/2003/03/addressing";>
  <wsnt:ConsumerReference xmlns:ncex="http://www.consumer.org/RefProp";>
        <wsa:ServiceName xmlns:sm="http://jaxws.components.servicemix.org/";>
                sm:Consumer
        </wsa:ServiceName>
  </wsnt:ConsumerReference>
  <wsnt:TopicExpression
dialect="http://www.ibm.com/xmlns/stdwip/web-services/WSTopics/TopicExpressi
on/simple">
    npex:SomeTopic</wsnt:TopicExpression>
  <wsnt:UseNotify>true</wsnt:UseNotify>
 
<wsnt:InitialTerminationTime>2003-12-25T00:00:00.00000Z</wsnt:InitialTermina
tionTime>
</wsnt:Subscribe>

/jonathan

Reply via email to