Showing posts with label xmlbeans. Show all posts
Showing posts with label xmlbeans. Show all posts

Nov 23, 2010

Initializing LdapContextSource localy instead of using spring xml

If you decide to work with internal coded LdapContextSource initialize instead of using spring injection (external application context xml file). There is one important thing you shouldn't forget:
Call "afterPropertiesSet()" method to finish up initialization.
Failing to do so would probably led you to this failure / exception as i had:
"org.springframework.ldap.core.support.AbstractContextSource.getAuthenticatedEnv(AbstractContextSource.java:449) etc.."
Hopefully that this helps...
Dor

Axis2 WSDL2Java to work with Salesforce API

Hi All,
After drilling down the web i have found a several ways to generate the java classes from Salesforce wsdl. I decided to publish this because i had enought.
I am using the partner.wsdl from salesforce, Myeclipse 6.5, and maven.
This what i have found, if you have anything to say write a comment, its important:
Don't forgot the add the axis2 directory to you path.
1) %AXIS2_HOME%\bin\wsdl2java -Eofv -g -uw -u -uri c:\salesforces\partner.wsdl -o c:\salesforce\generate -p com.test.salesforce
2) %AXIS2_HOME%\bin\wsdl2java -uri c:\salesforce\partner.wsdl -l java -d xmlbeans -p com.test.salesforce -sn SforceService -o c:\salesforce\generate
Bye,
Dor