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

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



Dominique Petitpierre wrote:

Hello,

New to xmlBlaster, I am trying a few demos.
When running the demo in demo/c/xmlrpc/, the following error
message appeared on the xmlBlaster console

[May 15, 2003 9:38:54 PM WARN  XmlBlasterException] \
Parsing exception string <org.apache.xmlrpc.XmlRpcException: \
Method ping not defined> failed: java.lang.IllegalArgumentException: \
ErrorCode: The given errorCode=org.apache.xmlrpc.XmlRpcException: \
Method ping not defined is unknown

- What is the problem?

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.


The full logs of the xmlBlaster server and of the xmlrpc C demo are in annexe (server.log, client.log). The corresponding line in the log of the callbackServer (abyss_root/log/access.log) is: 129.194.17.16 - - [15/May/2003:22:38:54 +0200] \ "POST /RPC2 HTTP/1.1" 200 519


Also, after publishing the message, the client says "Wait until callbackServer has received the response!" - How does one know it happened?

This XmlRpc demo is very tiny, just to show how it could be done.
As there is no multithreading support included in this demo, the callback server is
running as a separate process.
This way the client does not know if the callback arrived.
It is up to you to extend the demo to run in your application.


best regards,

Marcel