![MACROMEDIA CONTRIBUTE 3-CONTRIBUTE PUBLISHING SERVER Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/macromedia/contribute-3-contribute-publishing-server/contribute-3-contribute-publishing-server_manual_3312842019.webp)
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