SOAP Web Services for Dada Mail

 
From: "Justin J" <justin@PROTECTED>
Date: September 11th 2008

I've put together a Proof of Concept (and extremely simple) SOAP
server written in Perl and a SOAP client in both Perl and php to
interact with the SOAP server that interact with a method of the Dada
Mail API

I know there is some interest in getting Dada Mail talking to programs
outside of itself, written in other languages other than Perl and even
with things outside of where the copy of Dada Mail is installed Well,
that's done with something like SOAP

Below is the README file of the distro, which you can grab here:

http://dadamailproject
com/code/DadaMail_SOAP_example
tar
gz

Comments welcomed

SOAP Web Services for Dada Mail

This distribution includes:

* a CGI SOAP server, written in Perl that ties into the Dada Mail API

* a SOAP client written in Perl
* a SOAP client, written in php

Currently the SOAP API only provides one method, called,
"subscription_check" You can read more about this method in the API
docs:

http://dadamailproject
com/support/documentation-dada-3_0_0/MailingList_Subscribers
pm
html#subscription_check

as well as the Subscription COOKBOOK:

http://dadamailproject
com/support/documentation-dada-3_0_0/COOKBOOK-subscriptions
pod
html

The SOAP interface allows programs written in languages other than
Perl and/or located on a separate system to interact with Dada Mail
This type of web service could theoretically work with most any of
Dada Mail's high level functions: Validating Subscriptions,
Subscribing Mailing List Subscribers (either one by one, or en-mass),
Sending Messages, working with archived messages, etc

This small set of scripts is only to be as an example to show that
it is entirely possible

Requirements

The Perl server and the Perl client requires the SOAP::Lite CPAN distro:

http://www
soaplite
com/

http://search
cpan
org/~mkutter/SOAP-Lite-0
710
08/

The php client requires the PEAR SOAP distro:

http://pear
php
net/package/SOAP

You will also need a running copy of Dada Mail 3 0

Installation

Place both the soap_server cgi and soap_client cgi into the, "dada"
directory of your working Dada Mail installation Change the
permissions of both to, "755"

Place the soap_client php file somewhere on your website, however you
php folks do it

Configuration

Both the, soap_client php and soap_client cgi scripts have three
variables you may have to change:

  • $proxy

This should hold the URL to the soap_server cgi script

  • $email

This should hold an email address you'd like to validate

  • $list

This should hold a Dada Mail list shortname you'd like to validate
against

Running

The soap_client cgi and soap_client php scripts can be run simply by
visiting them in a webserver Doing so will print a simple report,
like so:

* Email: user@example
com
* List: mylist

Subscription Check: 0 Errors: * Error: already_sent_sub_confirmation * Error: subscribed done

And, that's it

The Future of SOAP Web Services in Dada Mail

It would be great to have some sort of Web Service available for Dada
Mail It will have to depend on user and developer interest in
accomplishing this

If you are interested in commissioning this feature, in part or in
whole, please contact me at:

http://dadamailproject
com/contact/
  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.