In our application, when moving from development over to QA and then over to prod, we keep having to update IPs in our forms in order for them to be able to call the web services in their respective environments. I'm hoping to create a LiveCycle process that will automate all that. My idea is to have an execute script which would check-out the resources, update their IPs (I have this part already), check-in the files and redeploy the application. I can't seem to find how to do this programmatically. There must be some web service or API on the server since workbench is able to do all of this.
Perhaps this is not the best solution for what I am trying to accomplish, I'm open to suggestions.
Thanks in advance!
Solved! Go to Solution.
Another appoach could be tu use a variable and make it of type "Configuration". That way the variable can be set from adminui once the application is deployed and you don't need to hard code the value in your process.
Thanks for the reply. Unfortunately, as far as I've been told, it is not feasible or at least practical to dynamically change the address of a web service that a form is invoking. Granted this could work for a process but for a form.... I was able to do it in a render process but this adds a lot of processing to an already heavy render process. This is why I am looking at a one time execution to actually modify the xdp source and check it back in.
ok. I'm not sure if that's what you were trying to do in your render process, but you could merge data which contains the WSDL url of the Web Service and dynamically change it that way.
Thanks again! I just checked with my colleagues, yes we could pass in the wsdl url in on the render, but this ends up creating more work on the server and client when we can just change it once (manually right now through a search and replace) in the xdp before deploying to our new environment. This is why I am trying to automate this and need the ability to checkin/checkout and deploy/undeploy programmatically.
Are you aware of any of these APIs being exposed either through a web service or EJB?
I had already looked at this article but it didn't do any of the check in/check out, so I never tried really hard to get it working. Since you brought it up, I decided to give it another shot and to my surprise, there is no need to to the check out/check in and redeploy, you can just call updateResource and it updates the file in the repository. I have yet to update its content and save it back, but this is extremely promising.
Thank you very much!!
Hello again, turns out the updateResource only does the checkin/checkout part. It does not redeploy the resource for me. Would you happen to know the API for that piece?