[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] XmlRpcException: Method ping not defined ?



Hello,

Thanks for the quick reply:
On 16-May-03 at 12:33, Marcel Ruff (mr at marcelruff.info) wrote:

> The XmlRpc demo seems to be outdated.
> I have added now in callbackServer.c
> 
>      ...
>      xmlrpc_server_abyss_add_method("ping", &ping, NULL);
>      ...
>     ping () ...
> 
> Please check it out with cvs.
> Could you please verify it works and report as i haven't tested it.

It seems to work. (cf logs in annexe).



One thing I do not yet understand: if one waits a minute before
quitting the client the following message is displayed on the
server console:

[May 16, 2003 5:56:50 PM INFO  TopicHandler-/node/http_129_194_17_16_3412/topic/PIB_REQUEST] \
  Topic reached state DEAD. 0 history entries are destroyed.

and the callbackserver prints the following:

-------------------------------------------
callbackServer: Entering ping(), message arrives ...

- What does this mean?


Best regards,
Dominique
--
Mr Dominique Petitpierre       Email: User at Domain
Division Informatique                 User=Dominique.Petitpierre
University of Geneva                  Domain=adm.unige.ch

==== client log ====
% ./client -xmlrpc.serverUrl http://un2sun2:8080/ -xmlrpc.cbUrl http://un2sun2:8081/RPC2 -loginName ben -passwd secret -dest ben -msgFile hello.xml


-------------------------------------------
Hello as C XmlRpc client for xmlBlaster ...

Login to http://un2sun2:8080/ as user ben ...
Login success, got sessionId=sessionId:129.194.17.16-null-1053099761470--1272540783-3
publish PIB_REQUEST to ben ...
Key=<key oid='PIB_REQUEST' contentMime='text/xml'/> Qos=<qos><destination queryType='EXACT'>ben</destination></qos>
Publish success, return value is 
 <qos>
  <key oid='PIB_REQUEST'/>
  <rcvTimestamp nanos='1053099761719000000'/>
 </qos>

Wait until callbackServer has received the response!
Than hit a key to logout ...

Logout from http://un2sun2:8080/ as user ben, sessionId=sessionId:129.194.17.16-null-1053099761470--1272540783-3 ...
Logout success, got '<qos><state id='OK'/></qos>'

Successful communicated with xmlBlaster.
-------------------------------------------
==== extract of xmlBlaster server log when c/xmlrpc/client is run ===
[May 16, 2003 5:42:45 PM INFO  Authenticate-/node/http_129_194_17_16_3412] Disconnecting client /node/http_129_194_17_16_3412/client/ben/-2, instanceId=-2, secretSessionId=sessionId:129.194.17.16-null-1053099761470--1272540783-3
[May 16, 2003 5:42:45 PM INFO  XmlKey] DOM parsed the XmlKey __sys__Logout
[May 16, 2003 5:42:45 PM INFO  TopicHandler-/node/http_129_194_17_16_3412/topic/__sys__Logout] New topic is ready, history/maxEntries=2, persistence/msgUnitStore/maxEntries=100000000
[May 16, 2003 5:42:45 PM INFO  SubjectInfo-3-/node/http_129_194_17_16_3412/client/ben] Destroying SubjectInfo /node/http_129_194_17_16_3412/client/ben. Nobody is logged in and no queue entries available
[May 16, 2003 5:42:45 PM INFO  Authenticate-/node/http_129_194_17_16_3412] loginNameSubjectInfoMap has 2 entries and sessionInfoMap has 1 entries
[May 16, 2003 5:43:41 PM INFO  TopicHandler-/node/http_129_194_17_16_3412/topic/PIB_REQUEST] Topic reached state DEAD. 0 history entries are destroyed.
==== callbackServer server log ====
% =1/callbackServer conf/abyss_root/conf/abyss.conf
server: switching to background.
% 

-------------------------------------------
callbackServer: Entering ping(), message arrives ...



-------------------------------------------
callbackServer: Entering update(), message arrives ...

cbSessionId=unknown
key=
 <key oid='PIB_REQUEST' contentMime='text/xml'/>
content=<data>Hello world!</data>

qos=
 <qos>
  <destination>/node/http_129_194_17_16_3412/client/ben</destination>
  <sender>/node/http_129_194_17_16_3412/client/ben/-2</sender>
  <subscribe id='__subId:PtP'/>
  <rcvTimestamp nanos='1053099761719000000'/>
  <queue index='0' size='1'/>
 </qos>

-------------------------------------------