I was busy with other forms that was more priority and haven't time to continue on this form until now. So far, I have it work fine by hard coding the path for the image in the web service, now I am getting stuck or confuse in making it to use the dynamic value to show the image. e.g. user enter the value like "200" in the form, click on the WS button, it will then concat the UNC path along with image extention .jpg to display on the form like this (\\server name\imageCatalog\smile.jpg) . Can you please advise.
Is the web service retrieving th eimage and returning it to you ...or is the WS only creating the UNC name to assign to the image?
I also assume that you are executing your Web service after the form has been rendered and the user is hitting a button to invoke the WS....right?
Yes, the web service does retrieve the image and return it to me within the form (after the form has been rendered and the user hitting a button to invoke the WS) or manually invoke in workbench ES by using the UNC path name that assigned to the image of the Input in ReadDocument component.
The problem that I have is to make a dynamic variable that capture the user input and pass it to the web service to show the image on the form instead of hard-coding it like the above.
So we should be able to eliminate the form from testing and validate that the WS will indeed get the image and return it to us based on an input that we pass. In Workbench if you invoke the web service it wil ask you for input parameters you can enter a value and see if indeed it is retrieving the image. Can we validate that the WS does what we think it is supposed to?
So now it is simply a case of binding the outout of the web service to the image field....and making sure that you set security on the WS to execute the service correctly. If you have bound the output then you should be able to see the web service being executed in your log ...as well turn on Record and Playback and make sure that it is being called.
Can you validate that the Wevb Service is being called when you activate it from the form. Turn record and playback onand you shoudl be able to see the service being called. Also check the app server log file for any errors.
I got this error right at the first step where it try to pass the input to the workbench.
[9/7/10 14:09:07:450 CDT] 00000030 WorkflowDSCIn E com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker logFailedFaultRouting An exception was thrown with name com.adobe.livecycle.fileutils.FileUtilsException message:ALC-FUT-001-011: File does not exist. while invoking service FileUtilsService and operation readDocument and no fault routes were found to be configured.
It looks like it does not pass the input to the input variable in workbench ES at all.
So there is your issue ...the file name that you are building does not exist on the server. There is something different in how you are generating the file name from th eform and from the WB soap service.The record and playback shoudl be able to show you what the filename is that it is looking for...hopefully that show you where the issue lies.