Extensions/Integration Questions

Use this forum for topics related to OpenEMM contributions like the Typo3 extension or SugarCRM connector

Moderator: moderator

Extensions/Integration Questions

Postby lord_alan » Wed May 12, 2010 5:14 pm

I've just started looking into (again) creating an interface between our favourite CRM (vtiger) and OpenEMM.

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


Why the error and is it a problem?

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
The Way Out Is Open.
lord_alan
 
Posts: 80
Joined: Wed Oct 01, 2008 1:15 pm
Location: Farnham, Surrey. UK

Postby maschoff » Wed May 12, 2010 6:25 pm

1. This is a bug. See http://www.openemm.org/forums/viewtopic.php?t=1446. You can change value 13 to 14 to fix it.

2. We started developing a new webservice interface based on Spring WS (instead of Axis) and covering 80% of OpenEMM's functionality. However, this will take some time, so do not expect it before October/November.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 1310
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Postby lord_alan » Thu May 13, 2010 8:00 am

2. We started developing a new webservice interface based on Spring WS (instead of Axis) and covering 80% of OpenEMM's functionality. However, this will take some time, so do not expect it before October/November.


Oooh - That sounds very interesting. So, if we start on something now using the functionality available today, it should be relatively easy to migrate that work to the new interface?

Is there any documentation or design specs that could help us in the interim period? (I'd be happy to sign an NDA if you need us to).

Thanks

Alan
The Way Out Is Open.
lord_alan
 
Posts: 80
Joined: Wed Oct 01, 2008 1:15 pm
Location: Farnham, Surrey. UK

Postby maschoff » Thu May 13, 2010 8:36 am

We have not written the specs yet. But the signatures of the new WS methods will follow the signatures of the old methods.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 1310
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Postby lord_alan » Thu May 13, 2010 8:54 am

Great that's helpful.

Thanks
The Way Out Is Open.
lord_alan
 
Posts: 80
Joined: Wed Oct 01, 2008 1:15 pm
Location: Farnham, Surrey. UK

Postby lord_alan » Thu May 13, 2010 10:31 am

ma wrote:1. This is a bug. See http://www.openemm.org/forums/viewtopic.php?t=1446. You can change value 13 to 14 to fix it.


Nope. 14 didn't work either:

Code: Select all
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: 14
   at org.agnitas.webservice.EmmWebServiceBindingStub.<clinit>(EmmWebServiceBindingStub.java:278)
   ... 2 more


I needed to change it to 15 before the error stopped.

HTH
The Way Out Is Open.
lord_alan
 
Posts: 80
Joined: Wed Oct 01, 2008 1:15 pm
Location: Farnham, Surrey. UK

Postby maschoff » Thu May 13, 2010 12:15 pm

Hm, strange. Does the method work now?
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 1310
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Postby lord_alan » Thu May 13, 2010 12:17 pm

Yes.

When I changed it to 14 I got the error shown above. So I then changed it to 15 (re-built) and tried again. The script now runs without producing the error.

Al
The Way Out Is Open.
lord_alan
 
Posts: 80
Joined: Wed Oct 01, 2008 1:15 pm
Location: Farnham, Surrey. UK


Return to OpenEMM Contributions

Who is online

Users browsing this forum: No registered users and 0 guests

cron