I'm trying webrfc in our personas system, and I copied the steps from here: http://scn.sap.com/community/gui/blog/2013/07/30/calling-rfcs-from-a-personas-script.
When I access the webrfc URL, it successfully displays the return message:
{"results":[{"key": "fullname", "value": "Sherwin G C"}]}
However, when I put it in a script, using 'Call WEBRFC', it returns an error: 'Calling the given WebRFC failed.'
Error log shows:
<string>9/10/2014 10:26:23,292962 ERROR Sap.Imagineering.Personas.Base.Controller.<>c__DisplayClass1d-><Execute>b__1a - Calling the given WebRFC failed. Sap.Imagineering.Personas.Base.Controller.Script.Exceptions.ExecuteScriptException: Calling the given WebRFC failed. at Sap.Imagineering.Personas.Base.Controller.Script.Expressions.Actions.CallWebRfcAction.Evaluate(ScriptContext context) at Sap.Imagineering.Personas.Base.Controller.Script.Expressions.BlockExpression.Evaluate(ScriptContext context) at Sap.Imagineering.Personas.Base.Controller.Script.ScriptEngine.Execute() at Sap.Imagineering.Personas.Base.Controller.UISession.<>c__DisplayClass1d.<Execute>b__1a()</string>
Any help will be appreciated. Thanks.