...
The SOAP messages are as follows:
1) createPullPoint>>>>>
...
Sample CreatePullPoint request sent to http://localhost:8192/CreatePullPoint/ |
...
...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
...
...
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" /> |
...
...
...
|
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
<ns4:CreatePullPointResponse |
...
xmlns:ns2="http://www.w3.org/2005/08/addressing" |
...
xmlns:ns4="http://docs.oasis-open.org/wsn/b-2" |
...
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" |
...
xmlns:ns5="http://docs.oasis-open.org/wsn/t-1"> |
...
...
...
http://servicemix.org/wsnotification/PullPoint/ID-some-host-38972-1188922931357-6-0 |
...
...
...
</ns4:CreatePullPointResponse> |
...
...
2) subscribe (pullPoint)
...
...
Sample Subscribe request sent to http://localhost:8192/Broker/ |
...
...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
...
<wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" |
...
xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
...
...
...
<!-- returned from createPullPoint --> |
...
endpoint:http://servicemix.org/wsnotification/PullPoint/ID-some-host-38972-1188922931357-6-0 |
...
...
</wsnt:ConsumerReference> |
...
...
...
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"> |
...
BrewProcess
</wsnt:TopicExpression> |
...
...
...
...
...
|
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
...
xmlns:ns2="http://www.w3.org/2005/08/addressing" |
...
xmlns:ns4="http://docs.oasis-open.org/wsn/b-2" |
...
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" |
...
xmlns:ns5="http://docs.oasis-open.org/wsn/t-1" |
...
xmlns:ns6="http://docs.oasis-open.org/wsn/br-2"> |
...
<ns4:SubscriptionReference> |
...
...
http://servicemix.org/wsnotification/Subscription/ID-some-host-38972-1188922931357-3-1 |
...
...
</ns4:SubscriptionReference> |
...
<ns4:TerminationTime xsi:nil="true" |
...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> |
...
...
...
3) notify
...
...
Sample Notify request sent to http://localhost:8192/Broker/ |
...
...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
...
<wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> |
...
<wsnt:NotificationMessage> |
...
...
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"> |
...
BrewProcess
</wsnt:Topic> |
...
...
...
xmlns:alarm="http://alarms.some-host"> |
...
<Name>Kettle Overfill</Name> |
...
<Desc>Kettle Overfill Alarm</Desc> |
...
<Date>2007-09-22-12:00:30:100</Date> |
...
...
...
...
...
...
</wsnt:NotificationMessage> |
...
...
...
>>>>>
<no (no response, in only)
4) getMessages
...
...
Sample getMessages request sent to http://localhost:8192/Broker/ |
...
...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" |
...
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" |
...
xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
...
...
...
http://servicemix.org/wsnotification/PullPoint/ID-some-host-38972-1188922931357-6-0 |
...
...
...
...
...
<wsnt:MaximumNumber>10</wsnt:MaximumNumber> |
...
...
...
...
|
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
...
...
...
xmlns:ns2="http://www.w3.org/2005/08/addressing" |
...
xmlns:ns4="http://docs.oasis-open.org/wsn/b-2" |
...
xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" |
...
xmlns:ns5="http://docs.oasis-open.org/wsn/t-1"> |
...
<ns4:NotificationMessage> |
...
...
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"> |
...
...
...
...
xmlns:alarm="http://alarms.some-host"> |
...
<Name>Kettle Overfill</Name> |
...
<Desc>Kettle Overfill Alarm</Desc> |
...
<Date>2007-09-22-12:00:30:100</Date> |
...
...
...
...
...
...
</ns4:NotificationMessage> |
...
</ns4:GetMessagesResponse> |
...
...
Notes:
- requests to endpoint url must include URL trailing slash due to smx bug (http://localhost:8192/Broker*/*Image Removed) due to smx bug
- pay special attention to the WS-Addressing syntax
- all requests are directed at the /Broker/ endpoint, except the createPullPoint
- only SimpleTopic expressions appear to be supported at this time