source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/Makefile @ 3123

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/Makefile@3123
Revision 3123, 876 bytes checked in by pjkersha, 12 years ago (diff)

security/python/ndg.security.test/ndg/security/test/wsSecurity/client: use ndg urn for WSDL and rename 'EchoService?'

Line 
1#
2# NERC Data Grid Project
3#
4# @author P J Kershaw 05/12/07
5#
6# Generate web service stubs from WSDL for Attribute Authority client and
7# server side code
8#
9# @copyright (C) 2007 CCLRC & NERC
10#
11# @license This software may be distributed under the terms of the Q Public
12# License, version 1.0 or later.
13#
14# $Id:$
15WSDL_FILE=../echo.wsdl
16CMD1=wsdl2py
17OPTS1=-be -f
18CMD2=wsdl2dispatch
19OPTS2=-e -f
20
21
22STUB_FILE=EchoService_services_server.py
23TMP_FILE=EchoService_services_server.py.tmp
24
25ORIG1=from Echo_services import
26REPL1=from ndg.security.test.wsSecurity.server.Echo_services import
27
28generateStubs: ${WSDL_FILE}
29        @echo Generate stub ...
30        ${CMD1} ${OPTS1} ${WSDL_FILE}
31        ${CMD2} ${OPTS2} ${WSDL_FILE}
32        @echo Make substitutions for compatibility for correct NDG import ...
33        @cat ${STUB_FILE}|sed  s/"${ORIG1}"/"${REPL1}"/g > ${TMP_FILE}
34        @mv ${TMP_FILE} ${STUB_FILE}
35        @echo Done.
Note: See TracBrowser for help on using the repository browser.