Results 1 to 6 of 6

Thread: [SOLVED] Client to access Soap API for Calendar

  1. #1
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    Location
    New Delhi, India
    Posts
    30
    Rep Power
    7

    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?

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    SOAP requires POST, not GET.

    Your life might be much simpler if you used ZMailbox.java from com.zimbra.cs.zclient.
    Last edited by dkarp; 07-18-2008 at 05:30 AM. Reason: Can't spel. Need cofee.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    Location
    New Delhi, India
    Posts
    30
    Rep Power
    7

    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?

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  5. #5
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    Location
    New Delhi, India
    Posts
    30
    Rep Power
    7

    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?

  6. #6
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    Location
    New Delhi, India
    Posts
    30
    Rep Power
    7

    Default

    its 80 got it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 45
    Last Post: 10-11-2012, 12:52 AM
  2. Jar For Soap Client
    By wcameron in forum Developers
    Replies: 19
    Last Post: 06-03-2009, 02:04 PM
  3. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  4. Replies: 1
    Last Post: 10-05-2007, 07:13 AM
  5. Domain admin soap api access
    By mrfileio in forum Administrators
    Replies: 0
    Last Post: 06-11-2007, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •