Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Accessing a Webservice from Designer

Avatar

Level 8
Level 8
Hi all,



I have created a process which I need to call directly from a form. When I add the data connection in Designer everything seems to work fine - I get the input fields and output fields as I should. Also I can find the wsdl at:



http://localhost:8080/soap/services/WebServiceTest?wsdl



However clicking the invoke button on the form gives me the message that the Reader has failed reading the file at:



http://localhost:8080/soap/services/WebServiceTest



Can you help me get this right?



Sincerely

Kim
9 Replies

Avatar

Level 10
You need to Reader Extend the form using the Reader Extension service to be able to call web services from Reader.



Jasmin

Avatar

Level 8
Level 8
Yes I did that - however I still get the same error.



The only rights I need to enable for webserviec calls ar e the webservice invication right?



What else could be the problem?



Sincerely

Kim

Avatar

Former Community Member
You need to make sure that each and every service within your service also have the appropriate security added or removed, not just the end-point to the service you are calling.

Avatar

Level 8
Level 8
Hi again,



Thanks Lee - that did the trick. How come this odd "feature"? Is it something that will be fixed in the designer - I mean it seems odd that I need to disable the security for "Set Value" and other simples services to be able to invoke them through the Reader...



However once again - thank you very much for your effort.



Sincerely

Kim

Avatar

Level 10
Kim,

You have to remember that everything is a service in LiveCycle. Whether it's a set value or a more complex one. You still need the right to access it.



In the next release (8.2) coming out soon, we've made some change around that were you will be able to specify an account to run the orchestration under.



This way you can leave the security on the web service for a certain account, and every time a user make a web service call (or any types of call) to the orchestration, it'll run it as that specific account.



In 8.2 you'll also be able to use Reader 9.0 and specify the credential to call the web service.



Jasmin

Avatar

Level 8
Level 8
Hi again Jasmin,



Thank you for the info - that sounds very nice with the enhancements in LC ES 8.2. I will be looking forward to this.



Sincerely

Kim

Avatar

Level 9
In the short term, we have a component that allows you to call a sub-process, and pass through the credentials. This allows you to invoke a secured workflow (the "real" workflow) from an unsecured one (the "public" workflow.)



Please email info-at-avoka.com for details, this isn't on our web site yet.



howard

http://www.avoka.com