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.

eZ debug

Timing: Jan 18 2025 16:03:52
Script start
Timing: Jan 18 2025 16:03:52
Module start 'layout'
Timing: Jan 18 2025 16:03:52
Module start 'content'
Timing: Jan 18 2025 16:03:52
Module end 'content'
Timing: Jan 18 2025 16:03:52
Script end

Main resources:

Total runtime0.0172 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0391152.6406
Module start 'layout' 0.00740.0031 740.679739.4922
Module start 'content' 0.01050.0050 780.171993.4922
Module end 'content' 0.01550.0017 873.664134.3047
Script end 0.0171  907.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.7260140.0002
Check MTime0.00106.0018140.0001
Mysql Total
Database connection0.002615.088510.0026
Mysqli_queries0.002715.828930.0009
Looping result0.00000.111110.0000
Template Total0.00137.710.0013
Template load0.00074.072510.0007
Template processing0.00063.576610.0006
Override
Cache load0.00052.784910.0005
General
dbfile0.00021.282080.0000
String conversion0.00000.054240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs