title: dW: IBM Datapower gatewayscript
body: <p>I'm new to Datapower Gateway script. In my script I try to get value of context variable like var://context/WSM/identity/credentials.</p>
  
  <p>I try something like:</p>
  
  <pre><code>session.input.getVariable('var://context/WSM/identity/credentials');
  session.input.getVar('var://context/WSM/identity/credentials');
  session.name('WSM');
  </code></pre>
  
  <p>But I alway have 'undefined' response.</p>
  
  <p>My question how can I access from gatewayscript to a context variable ? And globaly, is these the right way to get user cr<code>enter code here</code>edentials or there is another way ?</p>
  
  <p>Thank you for your help.</p>