PrashantSharma12

FaultHandlingAssignMessagePolicy

Jun 5th, 2018
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <AssignMessage async="false" continueOnError="false" enabled="true" name="invalid-key-message">
  3.     <DisplayName>Invalid key message</DisplayName>
  4.     <Set>
  5.         <Payload contentType="application/json">{"Error": "App Key Invlaid","Code":"401","ErrorTitle":"Incorrect Key Value passed.","DeveloperMessage":"The Appkey passed in the query param is either ooutdated or is not proper please validate with original product key."}</Payload>
  6.         <StatusCode>422</StatusCode>
  7.         <ReasonPhrase>Unprocessable Entity</ReasonPhrase>
  8.     </Set>
  9.     <Add>
  10.         <Headers>
  11.             <Header name="invalidKey">Invalid API key!</Header>
  12.         </Headers>
  13.     </Add>
  14.     <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
  15.     <AssignTo createNew="false" transport="http" type="request"/>
  16. </AssignMessage>
RAW Paste Data