We have a simple proxy that I'm working on. For the Proxy Endpoint request flow, the proxy does some logging in the PostFlow and as part of a FaultRule. Currently, the JavaScript that creates the logging message uses context.getVariable("message.uri"). This works just fine in the PostFlow, but the value is null in the FaultRule. However, if I change it to context.getVariable("request.uri"), I get a value in either scenario. It appears that the message variable is out of scope in the error flow, while the request variable is in scope. Our understanding, based on the Variables reference, was exactly the opposite. Are we misreading the documentation, or is there something odd going on here?
Mmmmm I'm not clear.
I think the variable 'request.uri' is valid as soon as a request is received, and remains valid throughout handling of the message.
If you are referencing request.uri, and it works , then... I think you're doing the right thing.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |