script installation des web services
Posté : jeu. 19 oct. 2017, 15:42:40
Bonjour,
dans le cadre de notre intégration continue, je dois mettre en oeuvre le script installWebService.sh pour des services REST.
hors lorsque je tente de faire une install, il ne me crée pas le WS tel que je le souhaiterai.
voici mon script
installwebservice.sh -server websrvf1d -service calcDouble -userid VACONNECT -programObject /qsys.lib/VADEVGRN.LIB/calcdbl.PGM -p
cml /home/grn/calcdbl.PCML -serviceType *REST -detectFieldLengths -propertiesFile /home/grn/calcdbl.properties -printErrorDetails
IWS00102I - Command completed successfully.
voici mon pcml
<pcml version="6.0">
<!-- RPG program: CALCDBL -->
<!-- created: 2017-10-19-15.14.00 -->
<!-- source: /home/grn/qrpglesrc/calcdbl.rpgle -->
<!-- 6 -->
<program name="CALCDBL">
<data name="nbrIn" type="int" length="2" precision="15" usage="input" />
<data name="httpStatus" type="int" length="4" precision="31" usage="output" />
<data name="nbrOut" type="int" length="4" precision="31" usage="output" />
</program>
</pcml>
voici mon fichier properties
uri.path.template=/
calcDouble.uri.path.template=
calcDouble.wrap.input.parameters=true
calcDouble.wrap.output.parameter=true
calcDouble.http.request.method=POST
calcDouble.consumes=*/*
calcDouble.produces=application/json
calcDouble.response.code.parameter=httpStatus
calcDouble.nbrIn.usage=input
calcDouble.httpStatus.usage=output
calcDouble.nbrOut.usage=output
j'ai suivi la doc mais ça ne fonctionne pas
j'obtiens toujours un WS créé en méthode GET. mon httpStatus n'est pas utilisé
bref, où ai-je bien pu me tromper ?
Merci beaucoup
N. GRULIER
PS et voici mon programme très simple:
**free
ctl-opt actgrp(*caller)
;
// interface , signature
dcl-pi *n ;
nbrIn int(5) ;
httpStatus int(10) ;
nbrOut int(10) ;
END-PI;
nbrout = nbrin * 2 ;
httpStatus = 0200 ;
*inlr = *on ;
// fin PGM
dans le cadre de notre intégration continue, je dois mettre en oeuvre le script installWebService.sh pour des services REST.
hors lorsque je tente de faire une install, il ne me crée pas le WS tel que je le souhaiterai.
voici mon script
installwebservice.sh -server websrvf1d -service calcDouble -userid VACONNECT -programObject /qsys.lib/VADEVGRN.LIB/calcdbl.PGM -p
cml /home/grn/calcdbl.PCML -serviceType *REST -detectFieldLengths -propertiesFile /home/grn/calcdbl.properties -printErrorDetails
IWS00102I - Command completed successfully.
voici mon pcml
<pcml version="6.0">
<!-- RPG program: CALCDBL -->
<!-- created: 2017-10-19-15.14.00 -->
<!-- source: /home/grn/qrpglesrc/calcdbl.rpgle -->
<!-- 6 -->
<program name="CALCDBL">
<data name="nbrIn" type="int" length="2" precision="15" usage="input" />
<data name="httpStatus" type="int" length="4" precision="31" usage="output" />
<data name="nbrOut" type="int" length="4" precision="31" usage="output" />
</program>
</pcml>
voici mon fichier properties
uri.path.template=/
calcDouble.uri.path.template=
calcDouble.wrap.input.parameters=true
calcDouble.wrap.output.parameter=true
calcDouble.http.request.method=POST
calcDouble.consumes=*/*
calcDouble.produces=application/json
calcDouble.response.code.parameter=httpStatus
calcDouble.nbrIn.usage=input
calcDouble.httpStatus.usage=output
calcDouble.nbrOut.usage=output
j'ai suivi la doc mais ça ne fonctionne pas
j'obtiens toujours un WS créé en méthode GET. mon httpStatus n'est pas utilisé
bref, où ai-je bien pu me tromper ?
Merci beaucoup
N. GRULIER
PS et voici mon programme très simple:
**free
ctl-opt actgrp(*caller)
;
// interface , signature
dcl-pi *n ;
nbrIn int(5) ;
httpStatus int(10) ;
nbrOut int(10) ;
END-PI;
nbrout = nbrin * 2 ;
httpStatus = 0200 ;
*inlr = *on ;
// fin PGM