Forums / Developer / n ezp publishers, one ezp server

n ezp publishers, one ezp server

Author Message

david e

Wednesday 22 February 2006 4:34:28 am

hello,

I've got this scenario:

- one internet server running ezp
- n (5 actually) LAN with an ezp intranet server each
- each ezp has private content, but the same content classes

the requirement is to publish some of the intranet content to the internet server. and do it automatically, with a "publish to web" button (and "delete from web").

to throw away the 5 intranet servers and to add 5 siteaccesses to the internet server is not possible because of privacy concerns, very specialized intranet and bandwidth.

what I've seen:

- http://ez.no/community/contribs/import_export/import_xml_data do provide an import, but not export
- http://ez.no/community/contribs/import_export/csv_extract_pubsvn where is FREECPD?
- http://ez.no/products/solutions_and_software/content_server we may buy a license, but that's not exactly what we need
- http://ez.no/doc_hidden/ez_publish/technical_manual/3_6/reference/modules/package it is not intended to be used as import/export of content, but of ezp setups, isn't it?

up to now ezpackage looks like the right way to go, something like:

<b>publisher</b>

// A new nice pakage ...
$package =& eZPackage::create( $name, array() );
$package->remove();
// Get an ezcontentobjectpackagehandler ...
$handler =& eZPackage::packageHandler( "ezcontentobject" );
$handler->addNode( $nodeID, false );
$options = ....
$handler->generatePackage( $package, $options );
$package->setAttribute( 'is_active', true );
$package->store();
$path = $package->archive( eZPackage::temporaryExportPath() . '/' .$name . '.tgz'  );
// Send to server
...
// Call ezpackage::import on server
...
 

<b>server</b>

...
 

d.

http://www.ingent.cat/

Xavier Dutoit

Thursday 23 February 2006 6:18:05 am

Hi,

Haven't tried it, but I think the best way of doing it would be to use a soap server on the internet website (to handle the publish requests from the intranets) and a custom event on the publication workflows on the intranets (with a soap client that's going to publish the content on the intranet by using the soap server).

From what I read, the soap extension Kristoff (or Paul?) developped seems to be more featured than the default ez one.

Let us know if you find something.

X+

http://www.sydesy.com

Björn [email protected]

Thursday 23 February 2006 9:07:37 am

Dear David,

The content server actually works with ezpackages over soap.

From your current post it looks to me that we can deliver about 90% - 100% of what you need with the current features of the content server. We would be of course happy to introduce new features to our tool.

If you are interested are interested in knowing more send me an email to bjoern [at] xrow.de

Finally... you asked Where is FREECPD?

FREECPD is a network of websites. read more at http://freecpd.info/

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Kristof Coomans

Thursday 23 February 2006 9:47:54 am

@Xavier:
I didn't release our nusoap server to the community yet...

but I've uploaded it to pubsvn now ( http://pubsvn.ez.no/community/trunk/extension/nusoap ) ;)

It has been a while since I made it and the nusoap library doesn't get too many updates, so I doubt it's compatible with eZ publish 3.7 / PH 4.4.

Docs are still missing so I give a quick install tip for those who want to try it already: copy nusoap.php from the install folder to your eZ publish root directory and add a new virtual host to your Apache config which rewrites all requests to it. Enable the nusoap extension, and then you can try the example service at <i>http://yournewvirtualhost/helloworld</i>.

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

Xavier Dutoit

Thursday 23 February 2006 11:31:45 pm

@Kristoff

What's the ez version you've used with your extension (thanks for sharing) ?

3.6 would do ?

X+

http://www.sydesy.com

Kristof Coomans

Friday 24 February 2006 2:00:31 am

I guess 3.6 should work.

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

Igor Vrdoljak

Tuesday 21 March 2006 5:57:36 am

Just an comment.

Nusoap server extension (developed by Kristof) does work with eZ publish 3.7 / PH 4.4 combination (at least in my case :-)

Currently using it to connect eZ Publish website with custom .NET app.

Thanx for great job!

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Kristof Coomans

Tuesday 21 March 2006 6:34:07 am

Thanks for testing it, Igor ;)

Nice to know it works on PHP 4.4. Did you notice any of the warnings introduced with that PHP version?

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

Xavier Dutoit

Tuesday 21 March 2006 12:05:15 pm

Hi Igor,

Could you detail what services you use and what you do with them ? (let's say that's going to be the doc ;)

X+

http://www.sydesy.com

Kristof Coomans

Wednesday 22 March 2006 12:26:15 am

I added the NuSOAP extension to the contributions: http://ez.no/community/contribs/applications/nusoap .

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

Igor Vrdoljak

Friday 14 April 2006 3:42:28 am

I am using nusoap extension as a connector between custom ASP.NET web app (special case of online shop with existing back-end app) and ez-based web shop front-end.

It is still in pilot/testing stage but generally is used for developing number of web methods for synchronization between two systems.

Igor

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

namita varshney

Monday 01 November 2010 4:23:16 am

hello,

I had down downloaded the nusoap extension from the trunk.

http://svn.projects.ez.no/nusoap/trunk/extension/

It gives me error:

  • Class nusoap_base in file extension/nusoap/classes/nusoap.php is already defined in:
    extension/nusoap/classes/class.nusoap_base.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class nusoap_fault in file extension/nusoap/classes/nusoap.php is already defined in:
    extension/nusoap/classes/class.soap_fault.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class soap_fault in file extension/nusoap/classes/nusoap.php is already defined in:
    extension/nusoap/classes/class.soap_fault.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.

......

Please can u give me any solution regarding this problem?

thanks.

Heath

Monday 01 November 2010 5:29:44 am

@namita

These are not errors mearly warnings.

And they can be safely ignored. I do - every day.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Gaetano Giunta

Monday 01 November 2010 6:28:51 am

@namita: in the nusaop distribution all the php classes are present twice: each file in a class of its own and one big file with all classes together. Just delete the file extension/nusoap/classes/nusoap.php and you will be ok.

Btw, could you please create a new forum thread when you have new questions instead of adding them to very old threads that are only slightly related?

Principal Consultant International Business
Member of the Community Project Board

namita varshney

Monday 01 November 2010 9:54:52 pm

Thanks heath and Gaetano Giunta.