Posts

Showing posts from September, 2015

Create waraper to process ofbiz soap service response

How to call soap service is describe in my previous post. http://tariqliferay.blogspot.com/2015/09/how-to-create-soap-client-for-ofbiz.html Here you get response as OMElement. Then you need to process this. Now i show how can you make pojo/dto class from response for further need. Think you get campaign list in response as key="campaignList" and  value list a list of campaign. First create dto/pojo class as your requirement. Here below a sample dto: import java.io.Serializable; /**  * @author tariq  *  */ public class Campaign implements Serializable{     public String campaignName = null;     public String campaignType = null;     public String contentId = null;     public String createdStamp = null;     public String createdTxStamp = null;     public String emailSubscription = null;     public String lastUpdatedStamp = null;  ...

How to configure/integrate ldap with liferay.

Image
Its very easy to integrate/configure ldap with liferay. To do this you need below: 1. LDAP server(to manage user, groups and authentication) Follow below link to install Ubuntu in linux .. http://www.unixmen.com/install-and-configure-openldap-in-ubuntu-15-04-and-debian-8/   2. Login liferay as admin and go to control panel> got portal settings > authintication and then configure as below: Export Mapping: Users DN = dc=example,dc=com User Default Object Classes = top,person,inetOrgPerson,organizationalPerson User Mapping: Screen Name =cn Email Address =mail Password =userPassword First Name =givenName Last Name =sn Connection: Base Provider URL=ldap://localhost:389 Base DN=dc=example,dc=com Principal =cn=admin,dc=example,dc=com Credentials = ldap admin pass Users: Authentication Search Filter=(mail=@email_address@) Import Search Filter=(objectClass=person) Finally change the below properties: ldap.auth.password.encrypt...

How to create soap client for ofbiz service or ofbiz service invocation from another application.

Sometimes ofbiz developer need to integrate ofbiz with 3rd party or another web application. This is very simple to create soap service in ofbiz.In ofbiz here soap engine to mail soap service. To create soap service or make service exportable follow the bellow steps: 1. Set export="true" in service definition for example   <service name="createColleague" engine="java" auth="true"         location="org.ofbiz.crm.colleague.ColleagueService" invoke="createColleague" export="true" > </service> You find all exportable service or soap service wsdl under webtools component. Open a your browser new tab and below url, http://localhost:8080/webtools/control/SOAPService?wsdl  Here you find all soap or exportable service. 2. Create java client to all this as below, /**  *  */ import java.util.Map; import java.util.logging.Logger; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axio...