Azy is a bit more complicated than a simple library.  It includes a parser
which generates code from .azy files (examples in src/tests/) for both client
and server code.

On Fri, 31 Dec 2010 13:15:11 -0500
Atton Jonathan <jonathan.at...@gmail.com> wrote:

> Helo Mike.
> 
> There is something I do not understand in the client part.
> 
> the method *retval = azy_client_call(cli, content, tr,
> (Azy_Content_Cb)azy_value_to_T_AllTypes); *call the server.
> 
> *azy_value_to_T_AllTypes(Azy_Value *azy_value_struct, T_AllTypes *
> *azy_user_type) *seems to be the method call when the client receive the
> response.
This is a generated function used to deserialize the data into a T_AllTypes*
struct.

> I suppose the call is aynchrone.
Azy is asynchronous.
> 
> 
> 
> Why this method does not have a content as parameter ? The server can send a
> content with a of struct/string... no ?
If you read the client examples, all of the actual method calls use generated
code and have content as the first parameter.
> 
> About *azy_user_type*, why this parameter ? An other callback is called
> after *azy_value_to_T_AllTypes*() ?
This is where the returned (allocated) user type struct is returned after it is
deserialized.
> 
> When I use *azy_client_call(), can I add a data and retrieve it when I work
> on the response ? (in **azy_value_to_T_AllTypes()**)*
In general, you should never need to call this directly.  Specify a method in
a .azy file and run the parser on it to generate all of the necessary client
code.
> 
> 
> 
> 2010/12/30 Atton Jonathan <jonathan.at...@gmail.com>
> 
> > I have missed the directory tests :-
> >
> > ok I will do some tests and call back later :)
> >
> >
> > 2010/12/30 Mike Blumenkrantz <m...@zentific.com>
> >
> >> On Thu, 30 Dec 2010 14:00:11 -0500
> >> Atton Jonathan <jonathan.at...@gmail.com> wrote:
> >>
> >> > Hello Nike.
> >> >
> >> > Have you a simple example of server and client ?
> >> >
> >> > In fact I need:
> >> >
> >> >    - call a service with string arguments
> >> >    - send a eet file. Can we easily send a eet file ? By using the eet
> >> >    descriptor or I will need to describe a copy in the azy descriptor ?
> >> Or
> >> >    maybe I can send a array of bytes ?
> >> >
> >> >
> >> > 2010/12/30 Mike Blumenkrantz <m...@zentific.com>
> >> >
> >> > > On Thu, 30 Dec 2010 15:44:04 +0100
> >> > > Nicolas Aguirre <aguirre.nico...@gmail.com> wrote:
> >> > >
> >> > > > On Thu, Dec 30, 2010 at 3:36 PM, Atton Jonathan
> >> > > > <jonathan.at...@gmail.com> wrote:
> >> > > > > Hello people,
> >> > > > >
> >> > > > > I plan to write a webservice  (in XML) with EFL, the server side
> >> and
> >> > > the
> >> > > > > client side.
> >> > > > >
> >> > > > > Is there in the EFL some library which can help me ?
> >> > > > >
> >> > > > > --
> >> > > > > Regards.
> >> > > > >
> >> > >
> >> ------------------------------------------------------------------------------
> >> > > > > Learn how Oracle Real Application Clusters (RAC) One Node allows
> >> > > customers
> >> > > > > to consolidate database storage, standardize their database
> >> > > environment,
> >> > > > > and, should the need arise, upgrade to a full multi-node Oracle
> >> RAC
> >> > > database
> >> > > > > without downtime or disruption
> >> > > > > http://p.sf.net/sfu/oracle-sfdevnl
> >> > > > > _______________________________________________
> >> > > > > enlightenment-devel mailing list
> >> > > > > enlightenment-devel@lists.sourceforge.net
> >> > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >> > > > >
> >> > > >
> >> > > > You should take a look at azy (PROTO/azy). If I'm not mistaken is
> >> > > > exactly what you need.
> >> > > >
> >> > > This is correct, however please note that Azy is under heavy
> >> development
> >> > > and so
> >> > > some features are not currently implemented.  If you want to do XMLRPC
> >> by
> >> > > spec
> >> > > (http://xmlrpc.org), then this will work flawlessly for you with no
> >> > > further
> >> > > work.  If not, I'll need you to send me more information about what
> >> you
> >> > > intend
> >> > > to do.
> >> > >
> >> > > --
> >> > > Mike Blumenkrantz
> >> > > Zentific: We run the three-legged race individually.
> >> > >
> >> >
> >> >
> >> >
> >> src/tests/ has some example server/client examples of varying complexity.
> >>
> >> It sounds like Azy will suit your needs.  I will have to add the mime type
> >> for
> >> eet (application/eet I guess?) so that it can parse the header properly,
> >> but
> >> aside from that you should be able to implement the client using
> >> azy_client_call (method calls) and azy_client_send (eet data in raw
> >> bytes).
> >>
> >> One thing to note is that Azy adheres extremely strictly to the XMLRPC
> >> standard, so if you use a client/server which "fudges" the XML structure
> >> at all
> >> you will probably run into errors.
> >>
> >> --
> >> Mike Blumenkrantz
> >> Zentific: We run the three-legged race individually.
> >>
> >
> >
> >
> > --
> > Regards.
> >
> 
> 
> 

-- 
Mike Blumenkrantz
Zentific: We run the three-legged race individually.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to