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 03-20-2007, 09:55 AM
Member
 
Posts: 10
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!!!
Reply With Quote
  #2 (permalink)  
Old 03-22-2007, 04:47 AM
Member
 
Posts: 10
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?
Reply With Quote
  #3 (permalink)  
Old 03-23-2007, 12:45 AM
sam sam is offline
Zimbra Employee
 
Posts: 821
Default

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

:: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::
Reply With Quote
  #4 (permalink)  
Old 03-23-2007, 01:41 AM
Member
 
Posts: 10
Default

Sorry for the stupid question... how/where do I specify namespace?
Reply With Quote
  #5 (permalink)  
Old 03-23-2007, 03:01 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
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
Reply With Quote
  #6 (permalink)  
Old 03-23-2007, 04:04 AM
Member
 
Posts: 10
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>
Reply With Quote
  #7 (permalink)  
Old 03-24-2007, 08:11 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #8 (permalink)  
Old 03-26-2007, 12:54 AM
Member
 
Posts: 12
Default

Hi Joserra,

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

regards
Reply With Quote
  #9 (permalink)  
Old 03-26-2007, 02:08 AM
Member
 
Posts: 10
Default

ok! thanks, it works perfect now!
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.