Re: Re: [ANN] XINS 1.3 supports XML-RPC
Paul Libbrecht <[email protected]>
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Hi,
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.
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 ?
paul
Paul Libbrecht wrote:
> Ernst,
>
> this looks fantastic, you are the very first person answering
> positively to this human-documentation-request. I'll have to dig deeper
> in XINS but it really tastes good!
> (the fact that REST comes as a cherry is just delicious as well)
>
> paul
>
>
> Le 17 nov. 05, à 09:54, Ernst de Haan a écrit :
>
>
>> Paul,
>>
>>
>>> Two questions:
>>> - are you using a classical xml-rpc library for this ?
>>> (e.g. Apache/Helma's)
>>>
>> No. In fact we only have an XML-RPC compatibility layer. There are
>> several of these layers, which we call "calling conventions." There is
>> also one for SOAP and one for REST-style calls (HTTP parameters in,
>> XML out). The REST-style is the default. This allows browsers to call
>> the implementation directly, with a simple HTML form
>>
>> The framework supports custom calling conventions as well. If you want
>> to read more about it, check out the Javadoc for the
>> CustomCallingConvention class:
>> http://xins.sourceforge.net/javadoc/1.3.0/org/xins/server/
>> CustomCallingConvention.html
>>
>>
>>> - do you have any approach towards human readable documentation of
>>> services?
>>>
>> Indeed. This is one of the cornerstones of XINS, in fact. From
>> XML-based specifications, it generates not only code, but also
>> specdocs (specification documentation). Example:
>> http://xins.sourceforge.net/demo/specdocs/
>>
>> And integrated with the specdocs, there is the generation of test
>> forms as well. Define some environments (locations of API
>> implementations, URLs) and a test form is generated that can be used
>> to call any of these. Screenshot of a test form with a result:
>> http://xins.sourceforge.net/xins-primer-response.png
>>
>> We have a XINS Primer that introduces you in all these topics:
>> http://xins.sourceforge.net/primer.html
>>
>> Then the User Guide explains how you can make XML-RPC calls instead of
>> REST-style calls. Basically, you have 2 choices:
>> (1) either define the XML-RPC calling convention as the default one,
>> in impl.xml
>> (2) or pass "?_convention=_xins-xmlrpc" in the URL when you send a
>> POST request.
>>
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/