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 Display Modes
  #1 (permalink)  
Old 11-28-2005, 10:45 AM
Member
 
Posts: 13
Default SOAP message

i post the next message to my zimbra server

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="http://serverzimbra/service/soap"></context>
</soap:Header>
<soap:Body>
<AuthRequest xmlns="urn:zimbraAdmin">
<account by="name">mail</account>
<password>11111</password>
</AuthRequest>
</soap:Body>
</soap:Envelope>

but i only get a 500 error what is wrong with my message??

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 11-28-2005, 01:28 PM
Zimbra Employee
 
Posts: 4,784
Default

Anything in the log? /opt/zimbra/tomcat/log/catlina.out

Also what URL did you post to?
Reply With Quote
  #3 (permalink)  
Old 12-01-2005, 03:10 PM
Member
 
Posts: 13
Default

i check the catlina.out but is a 0 bytes file i post to the /service/soap URL
Reply With Quote
  #4 (permalink)  
Old 12-01-2005, 03:20 PM
Zimbra Employee
 
Posts: 4,784
Default

Quote:
Originally Posted by axel16
i check the catlina.out but is a 0 bytes file i post to the /service/soap URL
It's catalina.out I typo'd the file name. How about the access log. Are you sure your request is getting to the server. What port are you posting to(or you can just tell us the full url).
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 12-01-2005, 03:32 PM
Member
 
Posts: 13
Default

Im using ASP to post the message

set xmldom = server.CreateObject("Microsoft.XMLDOM")
set xmlhttp = server.CreateObject("Microsoft.XMLHTTP")
const SoapServer = "http://200.0.176.121/service/soap"
xmlhttp.open "POST", SoapServer, false
xmlhttp.setRequestHeader "Man", POST & " " & SoapServer & " HTTP/1.1"
xmlhttp.setRequestHeader "MessageType", "CALL"
xmlhttp.setRequestHeader "Content-Type", "text/xml"
xmlhttp.send(SoapMessage)

then xmlhttp.Status gives me the answer for the server

in the access_log.2005-12-01 i find the follow lines

200.0.176.51 - - [01/Dec/2005:16:31:15 -0600] "POST /service/soap HTTP/1.0" 500 2278
200.0.176.51 - - [01/Dec/2005:16:31:15 -0600] "POST /service/soap HTTP/1.0" 500 2278
Reply With Quote
  #6 (permalink)  
Old 12-01-2005, 03:51 PM
Zimbra Employee
 
Posts: 4,784
Default

Here's the login request that our webclient sends. Notice your urn is wrong.

Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
  <context xmlns="urn:zimbra"></context>
</soap:Header>
<soap:Body>
  <AuthRequest xmlns="urn:zimbraAccount">
    <account by="name">user1</account>
    <password>test123</password>
  </AuthRequest>
</soap:Body>
</soap:Envelope>
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #7 (permalink)  
Old 12-01-2005, 04:00 PM
Member
 
Posts: 13
Default

Thanks a lot for your help
Reply With Quote
  #8 (permalink)  
Old 12-01-2005, 04:13 PM
Member
 
Posts: 13
Default

i change the urn but i still get the 500 error but now the line in the access log is the follow

200.0.176.51 - - [01/Dec/2005:17:09:52 -0600] "POST /service/soap HTTP/1.0" 500 2352
Reply With Quote
  #9 (permalink)  
Old 12-01-2005, 06:15 PM
Zimbra Employee
 
Posts: 4,784
Default

So what exactly are you posting now? You can turn on debug on tomcat with:

/opt/zimbra/tomcat/conf/log4j.properties

Add this line to the bottom of that file and restart tomcat.

log4j.logger.zimbra.soap=DEBUG

This should dump what we get off the wire into the logs.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #10 (permalink)  
Old 12-12-2005, 10:51 AM
Member
 
Posts: 13
Default

im still posting the request login i add the line

log4j.logger.zimbra.soap=DEBUG

to the /opt/zimbra/tomcat/conf/log4j.properties file

but i only get a 500 error and found the next line in the access_log

200.0.176.51 - - [01/Dec/2005:17:09:52 -0600] "POST /service/soap HTTP/1.0" 500 2352
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