You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-user@ws.apache.org by Martijn Frints <ma...@tid.es> on 2005/11/21 09:34:58 UTC

RE: May I use the bundled filesystem example toplaypublisherandsubscriber on 2 different servers ?

naturally, <wsa:To> should be directed at the producer, which is B...
sorry

Martijn

-----Mensaje original-----
De: Martijn Frints [mailto:martijn@tid.es]
Enviado el: maandag 21 november 2005 9:31
Para: pubscribe-user@ws.apache.org
Asunto: RE: May I use the bundled filesystem example
toplaypublisherandsubscriber on 2 different servers ?


I might be wrong, but it seems you want to subscribe at the consumer
machine. If the producer is B, you should sent the subscribe request to B,
indicating that machine A wants to subscribe for a topic. You should change
the <wsa:Address> parameter in the subscribe soap req to machineA, port
8080.
<wsa:To> should be directed to A, but it could be that pubscribe doesn't
even look at that field (I seem to remember that that was the case at
pubscribe 1.0 anyway).

regards
Martijn

-----Mensaje original-----
De: Ken Hu [mailto:ken@mmti.com.tw]
Enviado el: maandag 21 november 2005 9:18
Para: pubscribe-user@ws.apache.org
Asunto: May I use the bundled filesystem example to play
publisherandsubscriber on 2 different servers ?


Dear All:

Yes , I am a newbie to pubscribe.
I am in my experiment that I want to run pubscribe's filesystem sample
app on 2 different machine, one as WSN-publisher and the other
WSN-consumer.

After the installations on 2 machines, then
(1)execute the following command on machine A(cosumer) to subscribe to
the topics provided by WSN-producer(machine B) :

  ant -f soapclient.xml
-Durl=http://machineA:8080/pubscribe/services/filesystem
-Dxml=requests/Subscribe_updateMountPointProp.soap

 I've modified the Subscribe_updateMountPointProp.soap file, so that the
"wsa:To" referred to the service on machine B.

(2)execute the following command to casue an event on machine B:

     ant -f soapclient.xml
-Durl=http://machineB:8080/pubscribe/services/filesystem
	-Dxml=requests/SetResourceProperties_updateMountPointProp.soap

(3)execute the following command on machine A to view Notification:

    ant -f soapclient.xml
-Durl=http://machineA:8080/pubscribe/services/filesystem
-Dxml=requests/GetCurrentMessage.soap

I expect that machine B(producer) will send a notification to machine
A(consumer) and then I can get it from machine A, but it seemed like it
did not go in that way.

Where do I go wrong ? Am I misled by something ? Please give me some
advices to figure this out. Thanks !

Ken




--
研發部             胡重威             Ken Hu          ken@mmti.com.tw

孟華科技股份有限公司
http://www.mmti.com.tw

高雄巿804鼓山區蓮海路70號
國立中山大學創新育成中心511室

電話      07-5253020
傳真      07-5252165
行動      0937083880


Re: May I use the bundled filesystem example toplaypublisherandsubscriber on 2 different servers ?

Posted by Sal Campana <sc...@apache.org>.
Martijn Frints wrote:

>naturally, <wsa:To> should be directed at the producer, which is B...
>sorry
>
>Martijn
>
>-----Mensaje original-----
>De: Martijn Frints [mailto:martijn@tid.es]
>Enviado el: maandag 21 november 2005 9:31
>Para: pubscribe-user@ws.apache.org
>Asunto: RE: May I use the bundled filesystem example
>toplaypublisherandsubscriber on 2 different servers ?
>
>
>I might be wrong, but it seems you want to subscribe at the consumer
>machine. If the producer is B, you should sent the subscribe request to B,
>indicating that machine A wants to subscribe for a topic. You should change
>the <wsa:Address> parameter in the subscribe soap req to machineA, port
>8080.
><wsa:To> should be directed to A, but it could be that pubscribe doesn't
>even look at that field (I seem to remember that that was the case at
>pubscribe 1.0 anyway).
>
>regards
>Martijn
>
>-----Mensaje original-----
>De: Ken Hu [mailto:ken@mmti.com.tw]
>Enviado el: maandag 21 november 2005 9:18
>Para: pubscribe-user@ws.apache.org
>Asunto: May I use the bundled filesystem example to play
>publisherandsubscriber on 2 different servers ?
>
>
>Dear All:
>
>Yes , I am a newbie to pubscribe.
>I am in my experiment that I want to run pubscribe's filesystem sample
>app on 2 different machine, one as WSN-publisher and the other
>WSN-consumer.
>
>After the installations on 2 machines, then
>(1)execute the following command on machine A(cosumer) to subscribe to
>the topics provided by WSN-producer(machine B) :
>
>  ant -f soapclient.xml
>-Durl=http://machineA:8080/pubscribe/services/filesystem
>-Dxml=requests/Subscribe_updateMountPointProp.soap
>
> I've modified the Subscribe_updateMountPointProp.soap file, so that the
>"wsa:To" referred to the service on machine B.
>
>(2)execute the following command to casue an event on machine B:
>
>     ant -f soapclient.xml
>-Durl=http://machineB:8080/pubscribe/services/filesystem
>	-Dxml=requests/SetResourceProperties_updateMountPointProp.soap
>
>(3)execute the following command on machine A to view Notification:
>
>    ant -f soapclient.xml
>-Durl=http://machineA:8080/pubscribe/services/filesystem
>-Dxml=requests/GetCurrentMessage.soap
>
>I expect that machine B(producer) will send a notification to machine
>A(consumer) and then I can get it from machine A, but it seemed like it
>did not go in that way.
>
>Where do I go wrong ? Am I misled by something ? Please give me some
>advices to figure this out. Thanks !
>
>Ken
>
>
>
>
>--
>研發部             胡重威             Ken Hu          ken@mmti.com.tw
>
>孟華科技股份有限公司
>http://www.mmti.com.tw
>
>高雄巿804鼓山區蓮海路70號
>國立中山大學創新育成中心511室
>
>電話      07-5253020
>傳真      07-5252165
>行動      0937083880
>
>
>  
>
Ken,

Is this working for you now?

-S