Hello,
Is it possible to use the output variable from the JSON to XML policy, to do an xsl transform. When I try to do it, I have the error :
Json to xml variable output is "Output"
and source from xsl transform policy is "Output"
{ "fault": { "faultstring": "XSL Output: Invalid Source XSL-Transform-1.", "detail": { "errorcode": "steps.xsl.InvalidSource" } } }
Can you show your XSL policy configuration for XSL-Transform-1?
I guess "Invalid Source" indicates that the source you have specified is not a message. It needs to be a message. And the message content should contain XML. If that is not clear, let me know and I'll explain further.
The documentation states:
Source (Optional) |
Contains the message from which information needs to be extracted. Usually this value is set to request or response , depending on whether the message to be transformed is inbound or outbound.
|
My guess is that one of these things is happening:
See also this page for troubleshooting.
I can not seem to insert scrennshot so here is how I configured my xsl policy :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XSL async="false" continueOnError="false" enabled="true" name="XSL-Transform-1"> <DisplayName>XSL Transform-1</DisplayName>
<Properties/>
<ResourceURL>xsl://XSL-Transform-1.xsl</ResourceURL>
<Parameters ignoreUnresolvedVariables="true"/>
<Source>Output</Source>
<OutputVariable>Output1</OutputVariable>
</XSL>
sorry about the screenshot thing. I have that problem too, sometimes. I don't know the cause. I've had better luck with smaller images. From that I conclude that there may be a size/complexity filter on images, but the UI here on the community site doesn't actually tell you that.
But anyway adding the XSL is helpful.
What did you think about any of the 3 possibilities I suggested? I cannot tell from the configuration of your XSL policy what TYPE of thing "Output" is. Is "Output" the name of a context variable that contains a message? Is it something else?
Help me out here.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |