you can use the endpoint url http://mocktarget.apigee.net/json in this I want only first name and last name to be printed in response
ok, what have you tried?
I have used assign message policy and using add element I have added a specific value using request.queryparameter.<value> in add element which inject the value in header and display it. But I want to extract few variable from a payload or from a backend url and display it.
for example if I use http://mocktarget.apigee.net/json this url and from that I want to display only first name and last name.
Please help me
you can achieve the same by setting payload in assign message policy. you can use java script policy to do the same, even using raise fault policy(not highly suggested) in the response flow.
I have tried with setting the payload in assign message policy. But I am getting same response which is there in the target in request