unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Web services on guile
@ 2010-05-22 20:20 Romel R. Sandoval Palomo
  2010-05-23  9:25 ` Sascha Ziemann
  0 siblings, 1 reply; 5+ messages in thread
From: Romel R. Sandoval Palomo @ 2010-05-22 20:20 UTC (permalink / raw)
  To: guile-user

Hi,

I'm planning to write an application with a client server architecture.
I want to write the server on PHP and the client on Scheme (Guile).

The user of the client application will push some information to the
server every time she wants. Something similar to a commit or push on
version control systems.

About my selection of technologies:
* PHP: to take advantage of installed infrastructure and cheep hosting
* XML-RCP or SOAP: is the only thing I know it can be used under PHP
* Guile: because I like it :-)

So my problem is: How to consume web services (XML-RPC or SOAP) with
Guile?

I have found gSOAP http://www.cs.fsu.edu/~engelen/soap.html

I think I have four alternatives:

 1. Keep the web service consumption part of the client in C using gSOAP
 2. Write a binding of gSOAP library for Guile
 3. Write a web services library for Guile from cero
 4. Forget about PHP and use ONC RPC

What do you think is the best alternative?
Do you see other alternatives?






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Web services on guile
  2010-05-22 20:20 Web services on guile Romel R. Sandoval Palomo
@ 2010-05-23  9:25 ` Sascha Ziemann
  2010-05-23 21:16   ` Andy Wingo
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Ziemann @ 2010-05-23  9:25 UTC (permalink / raw)
  To: guile-user

2010/5/22 Romel R. Sandoval Palomo <romel@lavabit.com>:
> I think I have four alternatives:
>
>  1. Keep the web service consumption part of the client in C using gSOAP
>  2. Write a binding of gSOAP library for Guile
>  3. Write a web services library for Guile from cero
>  4. Forget about PHP and use ONC RPC

I found it quite complicated to handle complex data values with PHPs
SOAP-Server features. It will be much easier to use a s-list paser for
PHP and send the data as a-list.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Web services on guile
  2010-05-23  9:25 ` Sascha Ziemann
@ 2010-05-23 21:16   ` Andy Wingo
  2010-05-24  1:17     ` Linas Vepstas
  2010-05-25 14:48     ` Romel Sandoval
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Wingo @ 2010-05-23 21:16 UTC (permalink / raw)
  To: Sascha Ziemann; +Cc: guile-user

On Sun 23 May 2010 11:25, Sascha Ziemann <ceving@googlemail.com> writes:

> 2010/5/22 Romel R. Sandoval Palomo <romel@lavabit.com>:
>> I think I have four alternatives:
>>
>>  1. Keep the web service consumption part of the client in C using gSOAP
>>  2. Write a binding of gSOAP library for Guile
>>  3. Write a web services library for Guile from cero
>>  4. Forget about PHP and use ONC RPC
>
> I found it quite complicated to handle complex data values with PHPs
> SOAP-Server features. It will be much easier to use a s-list paser for
> PHP and send the data as a-list.

I would agree, FWIW. I wanted to implement XML-RPC at one point in
tekuti, but decided not to after looking at the spec. An s-expression
serializer/unserializer is fairly simply to write, you avoid
distribution problems that way, and you also avoid impedance mismatches.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Web services on guile
  2010-05-23 21:16   ` Andy Wingo
@ 2010-05-24  1:17     ` Linas Vepstas
  2010-05-25 14:48     ` Romel Sandoval
  1 sibling, 0 replies; 5+ messages in thread
From: Linas Vepstas @ 2010-05-24  1:17 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-user

On 23 May 2010 16:16, Andy Wingo <wingo@pobox.com> wrote:
> On Sun 23 May 2010 11:25, Sascha Ziemann <ceving@googlemail.com> writes:.
>
> I would agree, FWIW. I wanted to implement XML-RPC at one point in
> tekuti, but decided not to after looking at the spec. An s-expression
> serializer/unserializer is fairly simply to write, you avoid
> distribution problems that way, and you also avoid impedance mismatches.

I've sometimes liked to say that whoever invented XML had
gotten an F in college when studying LISP, although perhaps
they never studied lisp at all.  I've never really figured out
whether I'm being a troll when I say that, or not.

FWIW, I've worked with a data exchange format that has
both an XML and a scheme/guile version. Running the scheme
version of the dataset through guile-1.8 (and passing it into the
C++ system that needs the data) is 3x faster than running
it through the libxerces C++ XML parser.  (I've got detailed
speeds & feeds numbers if anyone cares)  The website
for libxerces says its "high performance, modular, scalable",
which is either a bald lie hallucinated by the maintainers,
or it's true, and a testament to how slowwww XML
fundamentally is.

If you want to be vaguely standards-interoperable, JSON is
worth a look, its pretty simple & yet powerful too. Never used
it in any data-intense situation, though.

--linas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Web services on guile
  2010-05-23 21:16   ` Andy Wingo
  2010-05-24  1:17     ` Linas Vepstas
@ 2010-05-25 14:48     ` Romel Sandoval
  1 sibling, 0 replies; 5+ messages in thread
From: Romel Sandoval @ 2010-05-25 14:48 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-user

I think, I will go for s-expression then.

El dom, 23-05-2010 a las 23:16 +0200, Andy Wingo escribió:
> On Sun 23 May 2010 11:25, Sascha Ziemann <ceving@googlemail.com> writes:
> 
> > 2010/5/22 Romel R. Sandoval Palomo <romel@lavabit.com>:
> >> I think I have four alternatives:
> >>
> >>  1. Keep the web service consumption part of the client in C using gSOAP
> >>  2. Write a binding of gSOAP library for Guile
> >>  3. Write a web services library for Guile from cero
> >>  4. Forget about PHP and use ONC RPC
> >
> > I found it quite complicated to handle complex data values with PHPs
> > SOAP-Server features. It will be much easier to use a s-list paser for
> > PHP and send the data as a-list.
> 
> I would agree, FWIW. I wanted to implement XML-RPC at one point in
> tekuti, but decided not to after looking at the spec. An s-expression
> serializer/unserializer is fairly simply to write, you avoid
> distribution problems that way, and you also avoid impedance mismatches.
> 
> Andy






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-25 14:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22 20:20 Web services on guile Romel R. Sandoval Palomo
2010-05-23  9:25 ` Sascha Ziemann
2010-05-23 21:16   ` Andy Wingo
2010-05-24  1:17     ` Linas Vepstas
2010-05-25 14:48     ` Romel Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).