Re: Re: [ANN] XINS 1.3 supports XML-RPC
Paul Libbrecht <[email protected]>
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Ernst de Haan wrote:
>> I gave it a try as we are currently reconsidering our pre-historic
>> Apache xml-rpc pre-1.0 version and moving maybe to version 2.0.
>> I could follow the tutorial, without problems.
>>
> Good. Feedback is highly appreciated! Did you find that the underlying concepts were explained enough?
>
Yes but my background does make a bias on it... for example, the gory
details of instructions are a bit superfluous to me... a single XML file
(which could become exploded) would have been fine.
I also found that the tutorial lead me to way too many files to be
written but I presume I'll realize the amplitued
>> I didn't manage to activate the xml-rpc "calling convention"... namely.. I didn't find the URL to send the request to and the example server keeps saying error 400...
>> Which URL should I use ?
>>
> Basically, just use this version of XINS:
> http://xins.sourceforge.net/xins-1.4.0-alpha1-pre1.tgz
> and try again. XINS 1.4 adds automatic calling convention detection
> and this feature has already been implemented.
>
I was using the cvs checkout believing xml-rpc was not in 1.3 (which is
wrong as I see)... had to correct a few XSL mistakes (xsl:var elements
were duplicate in templates) and that I could have wrongly done for sure...
> With XINS 1.3, you still have to pass ?_convention=_xins-xmlrpc to the URL.
>
I see... when is 1.4 expected ?
> I've updated the FAQ on the XINS site to answer your questions in
> greater detail:
> http://xins.sourceforge.net/faq.html
>
Here's my attempt, in beanshell or java code, using the apache xml-rpc
library and with server the xins server fed with the tutorial food with
person becoming personName:
c = new org.apache.xmlrpc.XmlRpcClient("http://127.0.0.1:8080/MyAPI/");
p = new Vector(); n = new Hashtable(); p.add(n);
n.put("personName","Anselme");
r= c.execute("Hello",p);
... led me to:
{greeting=Hi there Anselme.}
So that's fine!!
(I realize I was making the error, earlier, that n was empty... but the
only error I got was a status 400 (which makes an IOException instead of
a decent xml-rpc fault saying missing params).
Two more questions:
- how much do you support keep-alive connections ? We have been using
XML-RPC library in settings where as much as 300-500 queries a second
happen so keep-alive is an important factor.
- how can I start for the integration of XINS in our ActiveMath
web-application, using Tomcat thus far. Is there a XINS-servlet ? How do
I add new "objects" and attach them to URLs ? Which ant-tasks should I
use for the generation of the stubs and friends? I
thanks for XINS!
paul
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> 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/