Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 10-30-2006, 11:00 AM
Junior Member
 
Join Date: Oct 2006
Location: La Paz, Bolivia
Posts: 5
ruculmana is on a distinguished road
Send a message via MSN to ruculmana
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
czaveri's Avatar
Elite Member
 
Join Date: Feb 2006
Location: Pune, India
Posts: 294
czaveri is on a distinguished road
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
 
Join Date: Oct 2006
Location: La Paz, Bolivia
Posts: 5
ruculmana is on a distinguished road
Send a message via MSN to ruculmana
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
czaveri's Avatar
Elite Member
 
Join Date: Feb 2006
Location: Pune, India
Posts: 294
czaveri is on a distinguished road
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need advice on configuring zimbra to work with fax server pheonix1t Administrators 0 07-11-2007 07:46 PM
Post instsallation problems Assaf Installation 14 01-29-2007 10:38 AM
Error 256 on Installation RuinExplorer Installation 5 10-19-2006 09:19 AM
Kickstart for automated installation and disaster recovery mubley Installation 19 01-10-2006 02:45 PM
Zimbra fails after working for 2 weeks Linsys Administrators 9 10-20-2005 01:26 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0