I've downloaded Apache Axis2, using the following link:
Then I used the following command to generate java classes:
wsdl2java.sh -uri https://api.bronto.com/v4?wsdl
total generated src:
I was able to login with help using the following.
// Get the stub...
LoginE loginE = new LoginE();
Login login = new Login();
login.setApiToken("your token here");
// Call the web service; login
Now I try to addContacts, and needs SessionHeaderE, but I can't seem to link login to the sessionId, the following code is not right. I'm imaging after login, I should be able to get some session info. But I can't seem to find.
SessionHeader sessionHeader = new SessionHeader();
sessionHeader.setSessionId(param) // I don't know how to get sessionId from login info
SessionHeaderE sessionHeaderE = new SessionHeaderE();
By the way, this is my first time working with Axis. Not sure what's the best way to approach the problem.