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

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 10-30-2006, 11:00 AM
Junior Member
 
Posts: 5
Question Access from zimlet to Apache in the same server

Hi. Please can somebody help me with this matter?

I have Zimbra and Apache running in the same server. Zimbra is running at port 6081 and apache at 80.

I put a simple webservice on apache and I need to access this webservice from a zimlet. But when I try to do that apache returns an HTTP 403 STATUS.

Is it possible to fix it?
Reply With Quote
  #2 (permalink)  
Old 10-30-2006, 11:53 AM
Former Zimbran
 
Posts: 294
Default

Quote:
Originally Posted by ruculmana
Hi. Please can somebody help me with this matter?

I have Zimbra and Apache running in the same server. Zimbra is running at port 6081 and apache at 80.

I put a simple webservice on apache and I need to access this webservice from a zimlet. But when I try to do that apache returns an HTTP 403 STATUS.

Is it possible to fix it?
You shouldn't get this error on the same server. Can't say more than - have a look at Pages 33 and 34: Zimbra Zimlets Whitepaper.
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #3 (permalink)  
Old 10-30-2006, 08:01 PM
Junior Member
 
Posts: 5
Post Still doesn't work

I added
<property name="allowedDomains">*.192.168.0.100</property>

but the result is the same. HTTP 403 status.

I'm using a simple REST webservice (named rest-server.php) like above:

<?
$amount=$_GET["amount"];
$taxcalc=$amount*.15;
echo "<?xml version=\"1.0\" ?>";
echo "<taxinfo>";
echo "<result>".$taxcalc."</result>";
echo "</taxinfo>";
?>

I'm using the GET method to request a result in a xml file. (http://192.168.0.100/rest-server.php?amount=500)

I noticed that when I request from firefox or opera, in the same server, the browser doesn't see the result like an xml file and show just a number. When I request from a windows system using IE the result is OK and the browser show an xml file. Also I put the rest-server.php in a win2000 server with the same results.

Is this has relation with my zimlet problem? What do you think?
Reply With Quote
  #4 (permalink)  
Old 10-31-2006, 09:26 AM
Former Zimbran
 
Posts: 294
Default

Not sure and am not very good with things, but could this be pertaining to encoding type?

Perhaps you can try:

Code:
 echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
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