I'm trying to integrate AEM with Campaign and part of my use case, I will consume the webservices that are exposed by campaign to add some data to the campaign database. I will be adding fields like username, email etc in a table that stores user information (email recipients).
I'm looking for advise around how the webservices should be implemented - best practices, guidelines etc?
Thanks Amit but I was trying to consume the default webservices that are available OOTB in Campaign. I've now consumed the webservice in AEM, using a java implementation for the webservice client, and I'm able to write successfully to the Campaign database.
Using adobe campaign from AEM is fairly easy, because when you enable adobe campaign from aem as cloud service your username and passwords are stored in a encrypted way so you need not to provide that inside your service call. refer to this document.
to make a soap call all you have to do is ask your Adobe campaign developer to expose soap method as rest service or as JSSP page the you can write a simple code snippet like
response that you will be receiving will be a json and you can do what ever you want with that. if you need a to make a call then you can call this servlet from from end using js and this servlet will call adobe campaign this will give you added security.
Even for the Logon method, retrieving the session token requires sending the username / pwd in the request.