MACROMEDIA CONTRIBUTE 3-CONTRIBUTE PUBLISHING SERVER Скачать руководство пользователя страница 19

Creating a custom publishing service

19

To use the adapter file, place a copy of it in the same directory as the CFC file you wish to adapt, 
and then rename the CFML file to match the CFC filename. 

For example, to adapt CustomService1.cfc, copy the ContributeService.cfm file into the folder 
that contains the CFC, and then rename it to CustomService1.cfm. Be sure to use 
CustomService1.cfm for the URL of the web service instead of the CFC.

Related topics

“Creating a custom publishing service” on page 17

Installing the custom service on a server

After you write your custom service for CPS, you are ready to install the service on a server that 
CPS can access. 

Note: 

If you have not already written your custom service, see 

“Write a web service that implements 

the CPS API” on page 18

.

Macromedia recommends that you install the custom service on the same physical computer as 
CPS, for optimal performance. This reduces the time it takes to execute the web service 
invocation. And also, with both applications on the same computer, you can use the HTTP 
protocol. HTTP isn’t encrypted and is faster than HTTPS—which is the protocol you’d have to 
use to protect the security of event data if the applications were on two computers. 

Note: 

If you decide to install your custom service on a different computer and use SSL to secure the 

connection, be aware that the Simple Installation of CPS is configured not to trust self-signed 
certificates.

To deploy the example ColdFusion service, install ColdFusion on the server running CPS, and 
then copy the “cf ” folder from the examples to the ColdFusion web root.

Tip: 

If you don’t have ColdFusion, you can download a fully functional trial version from the 

Downloads page on the Macromedia website at

 

www.macromedia.com

.

Related topics

“Creating a custom publishing service” on page 17

Testing and troubleshooting your custom service

After you implement your custom service for CPS, you need to make sure it works. 

To see if your custom service is working, or to check errors, there are two logs you can use:

The log generated by the CPS Log service

For more information, see 

“Viewing the events log for a website” on page 12

.

The CPS Error Log

For more information, see 

“Viewing the CPS Error Log” on page 20

.

Related topics

“Creating a custom publishing service” on page 17

Содержание CONTRIBUTE 3-CONTRIBUTE PUBLISHING SERVER

Страница 1: ...CONTRIBUTE 3 Contribute Publishing Server...

Страница 2: ...a Software ASA and its suppliers All rights reserved Copyright 2005 Macromedia Inc All rights reserved This manual may not be copied photocopied reproduced translated or converted to any electronic or...

Страница 3: ...anging your CPS Console password 13 Forwarding website events to a custom service 14 CHAPTER 2 Extending Contribute Publishing Server 15 Contribute Publishing Server API overview 15 Creating a custom...

Страница 4: ...4 Contents tempPosting 27 undoCheckOut 28 undoSend 28 INDEX 29...

Страница 5: ...the Contribute Publishing Server Console on page 5 Enabling or disabling E mail and Log services for a website on page 7 Using the Simple File Deployment service on page 8 Using the RSS Activity Feed...

Страница 6: ...then click Login to log in to the CPS Console The Website Settings options of the CPS Console appear To access the CPS Console from a web browser 1 In a web browser enter the URL for the CPS Console T...

Страница 7: ...e Help To enable or disable the E mail or Log service 1 Open the CPS Console see Accessing the Contribute Publishing Server Console on page 5 The CPS Console appears 2 If the Website Settings options...

Страница 8: ...mplementation After you complete the set up tasks you can start using the service to move files from your staging server to your live server To set up the Simple File Deployment service 1 Open the set...

Страница 9: ...k actions that occur on the website Complete the procedure in Forwarding website events to a custom service on page 14 and then return to this procedure 5 Synchronize your staging and live servers The...

Страница 10: ...Feed service that adds a syndication feed to your website to report changes that occur on the website The RSS Activity Feed service converts Publish Delete and Roll Back events into a syndication feed...

Страница 11: ...atchURI indicates the folder the RSS Activity Feed service monitors for changes Any Publish Delete or Roll Back events that occur to pages in this folder or any subdirectory produces an entry in the s...

Страница 12: ...nd Roll Back events in specified folders You can use a news reader or aggregator such as the one in Macromedia Central to view your syndication feed To install Macromedia Central to access the RSS Act...

Страница 13: ...CPS Console password at any time The password is for logging in to console it is not specific to any website connection Be sure to record your password somewhere so you don t forget it Tip If you forg...

Страница 14: ...ite pop up menu 4 Click the Other Services tab The Other Services options appear 5 Do either of the following To start forwarding website events to a custom service click the Add button enter the URL...

Страница 15: ...types on page 22 Web service methods on page 23 Contribute Publishing Server API overview Contribute Publishing Server has components of a server application that run on a server When you enable a web...

Страница 16: ...has a method for each type of event Every type of event has a location and a user defined as follows Location describes the site URI and file path related to the event User describes the username and...

Страница 17: ...or the title author or date of documents Enhancing the draft review process You can write a server side script to create more detailed reports or to trigger more e mail notifications such as one that...

Страница 18: ...services_code simplelogger Examples for the CPS WAR File Installation are located at C Program Files Macromedia Contribute Publishing Server customservices_code simplelogger For each language the exam...

Страница 19: ...protocol HTTP isn t encrypted and is faster than HTTPS which is the protocol you d have to use to protect the security of event data if the applications were on two computers Note If you decide to ins...

Страница 20: ...e finished viewing the log click Close About extending the Simple File Deployment service You can use the Simple File Deployment service as a starting point for creating a service that meets your spec...

Страница 21: ...of the following files as desired 3 After you extend the Simple File Deployment service and are ready to use it see Accessing and using the Simple File Deployment service on page 9 Note If you have n...

Страница 22: ...ever is not sufficient for extending the service You must have the full version of the ColdFusion server running to extend the uncompiled code To find the RSS Activity Feed service files for extending...

Страница 23: ...y refers to a website Web service methods The following methods are web service procedures that the Contribute client call when certain events occur All these methods must be implemented in the web se...

Страница 24: ...s a Location object that specifies the site for which administration has been removed The user argument is a User object that describes the user who removed administration of the site cancel Descripti...

Страница 25: ...n of the temporary file containing the edited version of the page The recipient argument is an array of User objects that specifies the users who received the draft for review The comments argument is...

Страница 26: ...creates a site directory Arguments location user The location argument is a Location object that specifies the location of the site The user argument is the name of the person who requests creation of...

Страница 27: ...a Location object that specifies the location of the document for review The user argument is a User object that describes the user who is sending the document for review The draftLocation argument i...

Страница 28: ...e checkout is to be undone The user is a User object that describes the user who is undoing the checkout The draftLocation argument is a list of Location objects that specifies the WIP version of the...

Страница 29: ...ting 17 examples 17 D delete 25 E edit 25 events content 16 extending CPS API to create a custom service 17 F file management methods 23 I inbox edit 23 inbox edit methods 23 inboxEdit 26 L Location n...

Страница 30: ...28 User notification object 22 W web service methods 23 adminChange 24 adminRemove 24 cancel 24 cancelIndboxEdit 24 changeOwner 25 delete 25 edit 25 file management 23 inboxEdit 26 makeDirectory 26 p...

Отзывы: