You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by NLog Convert <aa...@yahoo.com> on 2009/04/07 20:09:10 UTC

WSNotification GetMessages appears to find the messages, but it doesn't return the content

Is there something wrong with my Notify request?
GetMessages appears to find the messages at the pullpoint, but it doesn’t
return the message content.  (The message element is included, but empty.)  

I’m attempting to follow the instructions to use WSNotification via http
endpoints.  http://servicemix.apache.org/example-scenario.html
ApacheServiceMix 3 (included in Fuse esb 3.4.0.0)

Messages sent/received:

<!—sent to http://myserver:8192/CreatePullPoint/ -->
CreatePullPoint Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><wsnt:CreatePullPoint
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
/></soapenv:Body></soapenv:Envelope>

CreatePullPointResponse:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns5:CreatePullPointResponse
xmlns:ns2="http://www.w3.org/2005/08/addressing"
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2"
xmlns:ns4="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:ns5="http://docs.oasis-open.org/wsn/b-2"
xmlns:ns6="http://docs.oasis-open.org/wsn/t-1"><ns5:PullPoint><ns2:Address>http://servicemix.org/wsnotification/PullPoint/ID1017172211203e31904151</ns2:Address></ns5:PullPoint></ns5:CreatePullPointResponse></soapenv:Body></soapenv:Envelope>

<!—sent to http://myserver:8192/Broker/ -->
Subscribe Request
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><wsnt:Subscribe
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsnt:ConsumerReference><wsa:Address>endpoint:http://servicemix.org/wsnotification/PullPoint/ID1017172211203e31904151</wsa:Address></wsnt:ConsumerReference><wsnt:Filter><wsnt:TopicExpression
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">myTopic</wsnt:TopicExpression></wsnt:Filter></wsnt:Subscribe></soapenv:Body></soapenv:Envelope>

Subscribe Response
<ns5:SubscribeResponse xmlns:ns5="http://docs.oasis-open.org/wsn/b-2"
xmlns:ns4="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2"
xmlns:ns2="http://www.w3.org/2005/08/addressing"
xmlns:ns7="http://docs.oasis-open.org/wsn/br-2"
xmlns:ns6="http://docs.oasis-open.org/wsn/t-1">
    <ns5:SubscriptionReference>
       
<ns2:Address>http://servicemix.org/wsnotification/Subscription/ID-10-17-17-221-1203e319041-4-1</ns2:Address>
        </ns5:SubscriptionReference>
    <ns5:TerminationTime
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
</ns5:SubscribeResponse>

<!—sent to http://myserver:8192/Broker/ -->
Notify Request
POST /Broker HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://localhost:8080/Broker"       (localhost because I’m
running through TCPMon to see the full request).
User-Agent: Axis2
Host: localhost:8080
Transfer-Encoding: chunked

1b6
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
<wsnt:NotificationMessage>
    <wsnt:Topic
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">myTopic</wsnt:Topic>
    <wsnt:Message>Hello World Message</wsnt:Message>
</wsnt:NotificationMessage>
</wsnt:Notify>
</soapenv:Body>
</soapenv:Envelope>
0

<!—sent to http://myserver:8192/Broker/ -->
GetMessages request:
POST /Broker HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://localhost:8080/Broker"
User-Agent: Axis2
Host: localhost:8080
Transfer-Encoding: chunked

1cb
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
    <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://servicemix.org/wsnotification/PullPoint/ID1017172211203e31904151</wsa:To>
</soapenv:Header>
<soapenv:Body>
<wsnt:GetMessages
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"><wsnt:MaximumNumber>1</wsnt:MaximumNumber></wsnt:GetMessages></soapenv:Body></soapenv:Envelope>
0

GetMessagesResponse:  (Message element is empty.)

<ns5:GetMessagesResponse xmlns:ns5="http://docs.oasis-open.org/wsn/b-2"
xmlns:ns4="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2"
xmlns:ns2="http://www.w3.org/2005/08/addressing"
xmlns:ns6="http://docs.oasis-open.org/wsn/t-1">
<ns5:NotificationMessage>
    <ns5:Topic
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">myTopic</ns5:Topic>
    <ns5:Message />
</ns5:NotificationMessage>
</ns5:GetMessagesResponse>

Any help is appreciated.

-- 
View this message in context: http://www.nabble.com/WSNotification-GetMessages-appears-to-find-the-messages%2C-but-it-doesn%27t-return-the-content-tp22934960p22934960.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.