Forums / Install & configuration / NuSOAP extension Installation problem

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

eZ debug

Timing: Jan 19 2025 07:12:58
Script start
Timing: Jan 19 2025 07:12:58
Module start 'content'
Timing: Jan 19 2025 07:12:58
Module end 'content'
Timing: Jan 19 2025 07:12:59
Script end

Main resources:

Total runtime1.1034 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 594.9609180.8203
Module start 'content' 0.00620.8597 775.7813597.0859
Module end 'content' 0.86590.2374 1,372.8672336.7500
Script end 1.1033  1,709.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3862210.0002
Check MTime0.00150.1359210.0001
Mysql Total
Database connection0.00080.074910.0008
Mysqli_queries1.007491.30131960.0051
Looping result0.00240.21761940.0000
Template Total1.068896.920.5344
Template load0.00270.242620.0013
Template processing1.066196.620420.5331
Template load and register function0.00020.014310.0002
states
state_id_array0.00160.141610.0016
state_identifier_array0.00110.103120.0006
Override
Cache load0.00220.2014410.0001
Sytem overhead
Fetch class attribute can translate value0.00210.190440.0005
Fetch class attribute name0.00100.090350.0002
XML
Image XML parsing0.00170.153940.0004
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00510.4658320.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs