Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

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 07-16-2008, 09:10 PM
Active Member
 
Posts: 30
Default [SOLVED] Client to access Soap API for Calendar

I am new to SOAP and Zimbra. I am trying to create an Client to acess the Zimbra calendar.I have installed the ZCS successfully on Ubuntu 7.1.The Have the follwoing queries
1. I am trying to access the soap thru http://hostname/service/soap, When I open the page in IE it gives me the message

HTTP ERROR: 405
HTTP method GET is not supported by this URL
RequestURI=/service/soap

Powered by Jetty://

I am using the correct URL? Do I have to add the port after the hostname? If yes.What port number should I use?

2. I am unable to connect to soap through Tester.java available in SourceForge.net Repository - [zimbra] Index of /trunk/ZimbraServer/src/java/com. It gives me the error :

[] WARN: local config file `\opt\zimbra\conf\localconfig.xml' is not readable
connecting to http://172.21.108.247/service/soap as admin with password admintest
com.zimbra.common.soap.SoapFaultException: unknown document: PingRequest
ExceptionId:btpool0-9:1216227597533:2897014f6407b6d7
Code:service.UNKNOWN_DOCUMENT
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:88)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:245)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:221)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:251)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:297)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:261)
at com.zimbra.cs.client.soap.LmcSoapRequest.invoke(Lm cSoapRequest.java:142)
at com.Tester.main(Tester.java:514)


Can somebody help?
Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 04:55 AM
Zimbra Employee
 
Posts: 1,434
Default

SOAP requires POST, not GET.

Your life might be much simpler if you used ZMailbox.java from com.zimbra.cs.zclient.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!

Last edited by dkarp; 07-18-2008 at 05:30 AM.. Reason: Can't spel. Need cofee.
Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 11:18 PM
Active Member
 
Posts: 30
Default

Thanks!
Actually I want to integrate only zimbra calendar with my java application. I want to use mailbox, only for creating an account and further use it only for scheduling appointments, for an account.
Is there a prticular class for the same?
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 05:32 AM
Zimbra Employee
 
Posts: 1,434
Default

All your operations are done via ZMailbox commands. The data comes back as ZFolders, ZAppointments, etc.

To create and modify accounts, use com.zimbra.cs.account.soap.SoapProvisioning.java.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 07-20-2008, 03:03 AM
Active Member
 
Posts: 30
Default

Thanks dkarp, that a very valuable input.

In the url of the server, I make an URL like http://hostanmeort/service/soap.
I an unable to find the correct value of the port number.Do you have any idea?
Reply With Quote
  #6 (permalink)  
Old 07-21-2008, 04:49 AM
Active Member
 
Posts: 30
Default

its 80 got it
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.