RE: Win32 Subscribe Problem

"Tommy Hui" <[email protected]> Wed, 2 Jun 2004 23:12:26 -0700
Newsgroups gmane.comp.web.mod-pubsub.devel
Message-ID <E7DA6EF8691B59409C6CB48E524E291404E6BB@w2k3-exchange.home.chhuoii.com>
Hi Rand,

Are you sure that the python server is running on port 8000? What I see
is that the server is not properly returning a request ID or an empty
request ID. This is causing the failure. 

What are the parameters you're passing to the pubsub.py server?

Also what platform are you using? Windows XP? Windows 2000?

Tommy

-----Original Message-----
From: [email protected]
[mailto:[email protected]] 
Sent: Wednesday, June 02, 2004 5:24 PM
To: Tommy Hui
Cc: mod pubsub; Tommy Hui
Subject: RE: [Mod-pubsub-developer] Win32 Subscribe Problem

Hi,

> Also, you can run
> Cscript /mod_pubsub/cxx_pubsub/LibKN/Tests/wsh/subscribe.vbs
> http://localhost:8080/kn /what/chat
> 
> To subscribe to the /what/chat topic.

When I run the subscribe.vbs script as per above, I get this:

C:\Dev\mod_pubsub\cxx_pubsub\LibKN\Tests\wsh>cscript Subscribe.vbs
http://localh
ost:8000/kn /what/foo
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

2 arguments
Successfully opened
Subscribing to /what/foo
0
Failed to subscribe, exiting.
OnConnectionStatus
  html_payload:watching who/wms/374680906/kn_journal
  kn_id:2964_300
  kn_payload:watching who/wms/374680906/kn_journal
  kn_route_location:
  kn_time_t:1086221892.06
  state:1
  status:200 Watching topic
  status_code:200
OnStatus
  html_payload:watching who/wms/374680906/kn_journal
  kn_id:2964_300
  kn_payload:watching who/wms/374680906/kn_journal
  kn_route_location:
  kn_time_t:1086221892.06
  state:1
  status:200 Watching topic
  status_code:200
Done

C:\Dev\mod_pubsub\cxx_pubsub\LibKN\Tests\wsh>


What is causing it to say "Failed to subscribe"? Or better, can you give
me any guidance on diagnosing?

I believe that the answer to that is why none of my other COM-based
subscriptions are working either. As I
said, my python-based subscriptions are working fine against the same
server/topic.

Thanks,
Randog



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504