Re: xml-rpc service C implementation compatible with HTTP or tomcat server
"Ravi Thati" <[email protected]> Fri, 23 Nov 2007 15:33:58 +0530
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
On Nov 23, 2007 12:47 PM, Ravi Thati <[email protected]> wrote: > Hello everybody, > > How do we actually have to write the service inorder to use the > mod_xmlrpc.so ? I have compiled the examples test , test 2 from the mod_xmlrpc2.2.1 and kept in httpd/lib/modules/xmlrpc_server directory. Those test and test2 are having services like do_add() , get_integer .etc methods implemented. and added entries in the httpd.conf like: LoadModule xmlrpc_module mod_xmlrpc.so <Location /RPC2 > SetHandler xml-rpc </Location> And restarted the server. Where to mention to server that these shared objects related to the services test,test2 are located in "httpd/lib/modules/xmlrpc_server" directory. When I tried to run a client to that server calling do_add() method is resulting in the following error mesage: *Making XMLRPC call to server url 'http://localhost:8080/RPC2' method 'do_add' to request the sum of 5 and 7... Call made XML-RPC Fault: RPC failed at server. Method 'do_add' not defined (-506) *What does thise error meant by? Is the RPC2 request recognized at the server?? if yes, is it able to find the do_add() method from libtest.so shared object. When checked in the log files I could seee this information: $> cat logs/access_log 192.168.61.54 - - [23/Nov/2007:15:26:09 +0530] "POST /RPC2 HTTP/1.1" 200 307 192.168.61.54 - - [23/Nov/2007:15:36:20 +0530] "POST /RPC2 HTTP/1.1" 200 307 ANy idea of where it goes wrong? How to trace the error? > > Do we need to have abyss server again or not? > > Where actually service is registered with the apache? and how do we do it? > > > How to change the code now inorder to register my service with apache > webserver ? > > > Can some body give me an example or how to use the apache with mod_xmlrpc > ? > > > > > > > > > On 21 Nov 2007 16:25:36 +0000, <[email protected]> wrote: > > > >Its loading the ruby_errinfo symbol when I use g++ instead of gcc . > > > > I have no idea why that would be. The reason it isn't found in the > > original attempt is that you have the link options in the wrong order. > > When static linking, you have to link the module that refers to a symbol > > _before_ the library that defines it, because that's the only way the > > linker knows that you need that library member in the link. > > > > >server: /home/tools/ravit/usr/local/httpd/modules/mod_xmlrpc.so: > > undefined > > >symbol: xmlrpc_registry_add_method_w_doc > > > > This comes from libxmlrpc_server.so, which is not in your link. The > > reason it's not is that in the 'xmlrpc-c-config' invocations, you don't > > say you want the server functions. See 'xmlrpc-c-config --help'. > > > > BTW, while I know something about linking Xmlrpc-c, I don't know > > anything > > about mod_xmlrpc. I've never built it myself. > > > > -- > > Bryan Henderson San Jose, California > > > > > > > > -- > Ravi.T > Oom asathoma sadgamaya (Lead me from darkeness to light) > Thamasoma jyothirgamaya ( From ignorance to truth) > Mruthyorma amrutham gamaya (From death to eternity) > Oom shanti shanti shantihi ( Let peace prevail everywhere) > -- Ravi.T Oom asathoma sadgamaya (Lead me from darkeness to light) Thamasoma jyothirgamaya ( From ignorance to truth) Mruthyorma amrutham gamaya (From death to eternity) Oom shanti shanti shantihi ( Let peace prevail everywhere) [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/xml-rpc/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/xml-rpc/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/