Question:
Hello.
I want the BC to return simple XML Page with a value of the Pipeline. I did this with a output template as XML.
The XML Document is as follows:
<xml>
<rc> %value /rc% </rc>
</xml>
This works for one service i created before. For the next service it don't work, because the BC is returning the following HTTP-Error like this:
(translation german->english)
HTTP Error 403 - Forbidden. You don't have the appropiate rights to show this page
Anyone knows why this happens ? I don't know where to change this behaviour.
Or is there another way to return values from BC to the calling client ?
Thanks in advance,
Sebastian
Answer:
This may meen that you have to set the ACL in the settings tab of your flow - but it usually means that there was an error in the flow ...
Answer:
I have set the ACL to Anonymous and to None. But it is still the same effect. Which error in the flow can produce such an error. I'm quite sure that the flow is okay. Because if i run this flow without this output template everything works fine.
Any ideas ?
Thanks in advance,
Sebastian
Answer:
is there any reason why you have %value /rc% and not just %value rc%
is /rc the name of your field. ?
One thing that you can do that may help is instead of using the output template in the settings - use the runTemplate flow and then use the output from that as the input to SetResponse you can then set the correct content type ( content type is set dynamically by BC depending on the way the flow was called. )
If you then run in browser with the debug you will be able to see exactly where the error ( if there is one ) occurs and see what the output will look like after the run Template.
Hope this helps
Jon
Answer:
The reason is that "rc" is a pipeline variable. And the SAP Developer Guide says that in the output template you must use the "/" before the variable to be recognized.
Well, i tried to do it your way. And it seems to be working so far. I just create a record where i set a variable.
But where the templates are stored and how i can transmit it to the runTemplate service ?
Thank again in advance,
Sebastian
Answer:
The templates are stored in the package files