dkarp .... thanks !!
This url worked:
https://localhost:7071/service/admin/soap
I was able to successfully add an account.
Thanks again !!
__________________________________________________ ________
For those struggling with SOAP here is my code:
1] Make sure the 'certificates' issue is sorted out first, we used a commercial certificate.
2] We used Eclipse IDE on Linux and Zimbra 4.8/Java 1.5
3] Make sure the
commons-httpclient-3.0.jar and
commons-codec-1.3.jar match up and make sure you use the correct jar files all around or you run the risk of cross-referencing. Also make sure you have the correct versions of
zimbrastore.jar and
zimbracommons.jar.
import java.util.HashMap;
import java.util.Map;
import com.zimbra.common.service.ServiceException;
import com.zimbra.cs.account.Account;
import com.zimbra.cs.account.soap.SoapProvisioning;
final static String FNAME = "Joe";
final static String LNAME = "Shmoe";
final static String ADDRESS = "101 Market Street";
final static String CITY = "San Francisco";
final static String STATE = "CA";
final static String POSTALCODE = "94105";
static private Account createZimbraAccount;
public static void main(String[] args) {
Map<String, Object> map = new HashMap<String, Object>();
try {
map.put("gn", FNAME);
map.put("sn", LNAME);
map.put("street", ADDRESS);
map.put("l", CITY);
map.put("st", STATE);
map.put("postalCode", POSTALCODE);
} catch (Exception e) {
e.printStackTrace();
}
try {
SoapProvisioning sp = new SoapProvisioning();
sp.soapSetURI("https://localhost:7071/service/admin/soap");
sp.soapAdminAuthenticate("admin","password");
createZimbraAccount = sp.createAccount("a@b.com", "password", map);
}
catch(ServiceException se) {
se.printStackTrace();
}
}
This should help you create a simple zimbra account using SOAP.
dkarp ... thanks again ....