The WSDL file generated using deployment console has the URL of the development corticon server. So in order to deploy the WSDL file to QA or production environment, I have to manually change the URL in the WSDL file.
<service name="MyDecisionService">
<documentation>InsertDecisionServiceDescription</documentation>
<port name="MyDecisionServiceSoap" binding="tns:MyecisionServiceSoap">
<soap:address location="localhost:8850/.../>
</port>
</service>
Same is the case for CDD file. The cdd file also contain the URL of the development corticon server. When the file needs to be deployed to QA, then I have to change to QA URL, and when I have to deploy to prod, then I have to update to prod URL.
<?xml version="1.0" encoding="UTF-8"?>
<cdd soap_server_binding_url="http://localhost:8850/axis">
<decisionservice>
<ruleset-uri>myruleflow.erf</ruleset-uri>
Please suggest if there is any automatic or better way of doing this task.
Thanks a lot,
Archana
Archana,
In the Deployment Console, SOAP Server URL field, you can specify the URL of choice [ your PROD or QA URL ] after deleting the default URL"localhost:8850/axis"
for e.g. type http://10.20.30.40:1234/axis and then click on Generate Service Contracts button .
This will give you a WSDL with URL http://10.20.30.40:1234/axis
Thank you,
Jan
Thanks Jan. yes, you are right. But my concern is that, this will require changing the WSDL and CDD files after decision service is tested in Development environment. Again the file requires changes after QA team is finished with testing.
This has raised concern in the version control team, that once QA has given their sign-off, then the files should not be changed. Please suggest if there is any way to parameterize this task.
Many Thanks,
Archana
Archana,
You can add the following properties to brms.properties or CcDeployment.properties with Ccconfig.jar and then launch the deployment console. This will give you a drop down with 2 options for the SOAP Server URL field.
You can then choose the URL you want to generate the WSDL with and then generate the WSDL.
com.corticon.deployment.soapbindingurl_1=http://<ipaddress1>:<port#>/axis
com.corticon.deployment.soapbindingurl_2=http://<machinename>:<port#>/axis
com.corticon.deployment.soapbindingurl_3=http://localhost:8850/axis
If you need to generate a WSDL each for DEV, QA and PROD, you will have to point to the URL of choice and then generate the WSDL 3 times .
Thank you,
Jan