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

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 Display Modes
  #1 (permalink)  
Old 04-21-2006, 02:46 PM
Junior Member
 
Posts: 6
Question Problem with SOAP CreateAccountRequest

Hi,

SOAP newbie at work here. I am successfully authenticating with the zimbra server and extracting the auth token. The next thing I do is put together a SOAP message to create an account. The error I get back is:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap: Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text>parse error: Error on line 5 of document : XML document structures must start and end within the same entity. Nested exception: XML document structures must start and end within the same entity.</soap:Text></soap:Reason><soap:Detail><Error xmlns="urn:zimbra"><Code>service.PARSE_ERROR</Code><Trace>com.zimbra.cs.service.ServiceException : parse error: Error on line 5 of document : XML document structures must start and end within the same entity. Nested exception: XML document structures must start and end within the same entity.
.....
</soap:Envelope>

The document header is below. The complaint is about line #5 and I don't see an error. What am I missing.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<sessionId id="95"/>
<authToken> the Token </authToken>
</context>
</soap:Header>

Thanks.

Rob Tanner
Linfield College
Reply With Quote
  #2 (permalink)  
Old 04-21-2006, 07:18 PM
Zimbra Employee
 
Posts: 4,784
Default

Rob, Please use CODE in [] and [/code] to wrap code or XML that you post. It will make it much easier to read.

Looks like your missing a closing </soap:Envelope> tag in your SOAP. Or was that a typo?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0