Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Desktop > Error Reports

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-2009, 06:11 PM
New Member
 
Posts: 3
Question SOAP API error

I'm using zcs-5.0.14_GA_2850.RHEL5_64.

I'm trying to test some features but i can't do this.

Code:
Code:
package zimbra;

import com.zimbra.cs.account.Account;
import com.zimbra.cs.account.Provisioning.AccountBy;
import com.zimbra.cs.account.soap.SoapProvisioning;

public class TestDeleteAccount  {

    public static void main(String[] args) {
		try {
			SoapProvisioning sp = new SoapProvisioning();
			sp.soapSetURI("https://zimbra.mydomain.br:7071/service/soap/");
			sp.soapAdminAuthenticate("admin@zimbra.mydomain.br","cavalopreto25");
			Account account = sp.get(AccountBy.name, "algodaofofinho@zimbra.mydomain.br");
			sp.deleteAccount(account.getId());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
  
}
Error:
Code:
og4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.params.DefaultHttpParams).
log4j:WARN Please initialize the log4j system properly.
com.zimbra.common.soap.SoapFaultException: system failure: Request not allowed on port 7071
ExceptionId:btpool0-7:1239756966715:c62b7a3396f463c7
Code:service.FAILURE
	at com.zimbra.common.soap.Soap12Protocol.soapFault(Soap12Protocol.java:88)
	at com.zimbra.common.soap.SoapTransport.extractBodyElement(SoapTransport.java:263)
	at com.zimbra.common.soap.SoapTransport.parseSoapResponse(SoapTransport.java:224)
	at com.zimbra.common.soap.SoapHttpTransport.invoke(SoapHttpTransport.java:262)
	at com.zimbra.common.soap.SoapHttpTransport.invoke(SoapHttpTransport.java:217)
	at com.zimbra.common.soap.SoapTransport.invoke(SoapTransport.java:315)
	at com.zimbra.common.soap.SoapTransport.invoke(SoapTransport.java:279)
	at com.zimbra.cs.account.soap.SoapProvisioning.invoke(SoapProvisioning.java:192)
	at com.zimbra.cs.account.soap.SoapProvisioning.soapAdminAuthenticate(SoapProvisioning.java:145)
	at zimbra.TestAccount.main(TestAccount.java:18)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.