I've just spun up a quick OpenEMM system and ran the scripts provided. I have one specific question on the Client script and one more general question...
1. In the return from EmmSoapClient.sh I get the following:
Code: Select all
openemm@debian:~/webservices$ ./EmmSoapClient.sh
newEmailMailing username password shortname description mailinglistID targetID mailingType templateID emailSubject emailSender emailCharset emailLinefeed emailFormat
newEmailMailingWithReply username password shortname description mailinglistID targetID mailingType templateID emailSubject emailSender emailReply emailCharset emailLinefeed emailFormat
updateEmailMailing username password mailingID shortname description mailinglistID targetID mailingType emailSubject emailSender emailReply emailCharset emailLinefeed emailFormat
insertContent username password mailingID blockName blockContent targetID priority
deleteContent username password contentID
sendMailing username password mailingID sendGroup sendTime stepping blocksize
addMailinglist username password shortname description
deleteMailinglist username password mailinglistID
addSubscriber username password doubleCheck keyColumn overwrite paramNames paramValues
getSubscriber username password customerID
findSubscriber username password keyColumn value
deleteSubscriber username password customerID
setSubscriberBinding username password customerID mailinglistID mediatype status bindingType remark exitMailingID
getSubscriberBinding username password customerID mailinglistID mediatype
updateSubscriber username password customerID paramNames paramValues
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.agnitas.webservice.EmmWebService_ServiceLocator.getEmmWebService(EmmWebService_ServiceLocator.java:65)
at org.agnitas.webservice.EmmSoapClient.main(EmmSoapClient.java:62)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 13
at org.agnitas.webservice.EmmWebServiceBindingStub.<clinit>(EmmWebServiceBindingStub.java:266)
... 2 more
2. There are - to my mind - a quite limited number of calls available. For example I see no way of being able to "get" a list of Mailinglist names & IDs, or Mailings & their IDs or return a subscriber search of more than one entry.
This will make creating an "interesting" extension quite hard... Are there any examples where others have used direct database access rather than SOAP to build extensions and how much effort is there in maintaining this as and when upgrades to the db schema occur?
Cheers
Alan