Thanks Willem,
On 25/11/2007, Willem de Jong <[EMAIL PROTECTED]> wrote:
>
> I hope this isn't too much off topic, but I would like to comment on
> this:
>
> > I'm aware that it's possible to use Yaws+erlsom, but it has a few
> > weaknesses:
> > - erlsom's install relies on sh; it doesn't install on Ubuntu without
> > a bit of mucking around, and must be a challenge for Windows as well
>
> Actually, installing erlsom on windows is quite easy: download the tar-
> ball from sourceforge, unzip it and compile it (in the erlang shell:
> make:all([{outdir, "../ebin"}, load]). ). Or you can get it from CEAN.
> I guess that would work for Ubuntu as well.
>
I actually only "discovered" CEAN a few days ago - until then I'd been
mucking around compiling stuff in Ubuntu, and basically not needing to
use Windows. When I hit a situation where I had to work on Windows, I
quickly got frustrated with the lack of Unix utilities, stumbled on
CEAN, and have been happily using it since.
> If there is any advise on how to make erlsom easier to install I would
> be interested to hear it - after all it would be a pity if the code is
> not used for reasons like this.
>
> > - setting up a Web service is a non-trivial exercise; just read
> > through the relevant page (http://yaws.hyber.org/soap_intro.yaws) at
> > the Yaws site
>
> I sort of agree to this comment: it is more complex than necessary -
> but it would be easy to fix this.
>
> At this moment I am trying to contact the people who maintain erlsoap,
> to see whether I can persuade them to incorporate some changes that I
> made. It would be fairly straightforward to do the same for yaws, I
> think. I focussed on erlsoap because it seems to be more lightweight
> and easier to install.
I vaguely remember reading a message a while back where the person
writing it said he'd not been able to contact the erlsoap
maintainer/s. It doesn't look like it's been updated for quite a
while, so maybe that person has just dropped off the map.
>
> In the proposed erlsoap version, all that you have to do to set up a
> soap service is:
> intsallation: install erlsoap & erlsom (from CEAN, for example)
> development: create a callback module for your soap service (1 module
> per WSDL). It needs to implement 1 function, called handler. This
> function will be called when a SOAP service from the WSDL is called.
> Its most important argument will be the body of the SOAP request,
> conveniently translated to a structure of records. The handler
> function should return another structure of records that corresponds
> to the body of the response.
> deployment: start httpd (comes with the standard distribution). In the
> configuration file, make sure to start mod_soap, and for each WSDL
> file include a line that links the WSDL to a URL and to the callback
> module.
That sounds very elegant - exactly the sort of thing I'm looking for.
>
> Does erlyweb use yaws? If so, I would be happy to help with the
> creation of a similar appoach for yaws. Would it need further
> integration with erlyweb?
erlyweb uses yaws as a platform - essentially erlyweb provides a
vaguely Ruby-on-Rails-like MVC architecture on top of yaws. MVC is a
particularly good fit for a lot of Web apps; I've used Rails a lot,
but have been hitting on its scalability limits lately.
One thing I like about Rails is that it's almost trivial to add SOAP,
XMLRPC, JSON, ... interface to existing functionality. It's literally
about a 10 minute job in most cases.
Yariv said a few days ago that he was going to look into adding
support for Web services to erlyweb. Maybe the two of you could get
together to talk things over. I'd happily test any such solution you
come up with - I've got a project on the go now that's perfect for it.
Regards
Dave M.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---