NuSOAP extension Installation problem

Author Message

Fabio Carissimi

Friday 31 March 2006 1:10:09 am

Hello,

I want to test NuSOAP extension in a multisite installation.
I have 2 sites and succeed to set up a virtual host installation accessing
to site 1 by http://site1.mycomputer.mydomain.com/ and
to site 2 by http://site2.mycomputer.mydomain.com/.

To do so I have a unique virtual host like the one in EzPublish documentation which redirect all of port 80
to index.php of EzPublish

<VirtualHost *:80> 
 ... 
<IfModule mod_rewrite.c>
       RewriteEngine On
       ...
       RewriteRule .* /index.php
</IfModule>

and then the settings in overrride/site.ini.append do the rest :

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=site1
AvailableSiteAccessList[]=site1_admin
AvailableSiteAccessList[]=site2
AvailableSiteAccessList[]=site2_admin
MatchOrder=host
HostMatchMapItems[]=site1.mycomputer.mydomain.com;site1
HostMatchMapItems[]=site2.mycomputer.mydomain.com;site2
HostMatchMapItems[]=site1_admin.mycomputer.mydomain.com;site1_admin
HostMatchMapItems[]=site2_admin.mycomputer.mydomain.com;site2_admin

I want to test the installation having a soap server for site 1 and a soap client in site2
I installed Nusoap following the instructions,
but I think there is something I don't understand in Virtual host setup.
In nusoap/doc/install.txt, it is told to add a Virtualhost like that :

<VirtualHost [IP_ADDRESS]:[PORT]>
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule .* /nusoap.php
    </IfModule>

    DocumentRoot [PATH_TO_EZPUBLISH]
    ServerName [SERVER_NAME]
    ServerAlias [SERVER_ALIAS]
</VirtualHost>

How must I setup this virtual host with the other one ?

I tried to add an other virtual host, but it does not work.
It should display the web services available, but nothing is displayed in the browser.
But the second test of the extension in command line works :

# ./extension/nusoap/bin/php/helloworldclient.php http://soap.example.com/helloworld?wsdl Kristof
print : Hello, Kristof

Somebody can help me to finish installation and explain me how to setup a soap server and
have a soap client in EzPublish ?

Many thanks for help

Kristof Coomans

Friday 31 March 2006 2:44:21 am

Hi Fabio

The NuSOAP server for eZ publish currently uses the default siteaccess (just like the default soap server of eZ publish).

What do you have in settings/override/site.ini.append(.php)? This should make site1 the default access:

[SiteSettings]
DefaultAccess=site1

Did you activate the nusoap extension for site1 (or for all sites, that should work too)?

Now for your virtual host configuration. I guess you're using name based virtual hosts instead of IP based vhosts? Just like you did with your other vhost configs, choose a name for it, eg. soapsite1.mycomputer.mydomain.com, and use this after the ServerName directive.

If you can't get it to work, then please post the vhost config for the soap server.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kåre Køhler Høvik

Friday 31 March 2006 4:10:22 am

For setting up rewrite rules, see: http://ez.no/doc/ez_publish/technical_manual/3_6/installation/virtual_host_setup
You can use this to have soap.something.com as a virtualhost with nusoap.php

RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) /nusoap.php [L]

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.