Project

General

Profile

Download (1.01 KB) Statistics
| Branch: | Tag: | Revision:
1
CDM Webservice Stub files
2
=========================================
3

    
4
ws_stub contains XML and JSON serialisations of eu.etaxonomy.cdm.dto objects its respective subfolders.
5

    
6
These serialisations can be used to drive test runs during development of cdm php applications.
7
If the drual vatiable 'cdm_webservice_url' is setup to point to the respective svn repository subfolder,
8
the cdm_api will use these files instead of sending requests to a real service. 
9

    
10
Naming convention for service stub files:
11
------------------------------------------
12
The CDM Webservice is queried with parametriesed URLs. 
13
The filename and query part of the URLs are translated into a filename without query part by the following 
14
replacement rules. It is not expectet that the service URLs will contain fragments, thus no according 
15
replacement rule is defined.
16

    
17
endcoding rules:
18
	? -> ;
19
	& -> ,
20
	
21
Additionally a fileextension is appended to the resulting filename which reflects the service
22
type (drupal variable 'cdm_webservice_type').
23

    
    (1-1/1)