Results 1 to 9 of 9

Thread: SOAP access without user/password

  1. #1
    Join Date
    Mar 2007
    Posts
    9
    Rep Power
    8

    Default SOAP access without user/password

    We need to know unread emails from a portlet. we generate the URL to access Zimbra with preAuth, there is no problem with that, but...
    Does this generated token can be used also as authToken in SOAP to avoid using user/password?

    By the way, which is the method you use to access SOAP without WSDL? Because itīs a hard way to use SOAP!!!

  2. #2
    Join Date
    Mar 2007
    Posts
    9
    Rep Power
    8

    Default

    If we use:
    HTML Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    		<soap:Header>
    		<context xmlns="urn:zimbra">
    		<authToken>XXXXXXXXX</authToken>
    		</context>
    		</soap:Header>
    		<soap:Body>
    		<GetInfoRequest>
    		</GetInfoRequest>
    		</soap:Body>
    		</soap:Envelope>
    with the authToken generated with preAuthkey for the email we want the info, we get unknown document: GetInfoRequest.

    Do we have to do a AuthRequest with the generated preAuthKey?

  3. #3
    Join Date
    Aug 2005
    Posts
    821
    Rep Power
    11

    Default

    you need to specify the correct namespace of your GetInfoRequest
    Sam Khavari

    :: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::

  4. #4
    Join Date
    Mar 2007
    Posts
    9
    Rep Power
    8

    Default

    Sorry for the stupid question... how/where do I specify namespace?

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Does this thread help you? I'm not a coder but isn't this
    Code:
    <context xmlns="urn:zimbra">
    where you specify the namespace?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Mar 2007
    Posts
    9
    Rep Power
    8

    Default

    Thanks for your reply, it was an obvious one but I was confused, but iīm getting still the same exception with:
    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    	<soap:Header>
    		<context mlns="urn:zimbra">
    <authToken>XXXXXXXXXXXXX</authToken>
    		</context>
    	</soap:Header>
    	<soap:Body>
    		<GetInfoRequest xmlns="urn:zimbra"></GetInfoRequest>
    	</soap:Body>
    </soap:Envelope>

  7. #7
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Namespace woes

    Quote Originally Posted by jrramon View Post
    Code:
    <context mlns="urn:zimbra">
    You want "xmlns" there.
    Quote Originally Posted by jrramon View Post
    Code:
    <GetInfoRequest xmlns="urn:zimbra">
    And you want "urn:zimbraMail" there.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  8. #8
    Join Date
    Mar 2007
    Posts
    11
    Rep Power
    8

    Default

    Hi Joserra,

    try with xmlns="urn:zimbraAccount" after the request! it works!

    regards

  9. #9
    Join Date
    Mar 2007
    Posts
    9
    Rep Power
    8

    Default

    ok! thanks, it works perfect now!

Similar Threads

  1. [SOLVED] SOAP access to the Zimbra server
    By sahuguet in forum Developers
    Replies: 29
    Last Post: 04-10-2008, 07:34 AM
  2. Domain admin soap api access
    By mrfileio in forum Administrators
    Replies: 0
    Last Post: 06-11-2007, 08:07 PM
  3. SOAP Access on port 7070
    By bgibby in forum Installation
    Replies: 3
    Last Post: 05-31-2007, 09:10 PM
  4. SOAP calendar access
    By mrojek in forum Developers
    Replies: 2
    Last Post: 05-10-2007, 12:42 AM
  5. Replies: 5
    Last Post: 03-01-2007, 02:20 AM

Posting Permissions

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