This is my problem.
I have a proxy service which works fine ,giving the desired response when I test from OSB console.
But if I try to call the same service from REST client/Java client I get the response as "500 Internal Server Error".
What could be the issue?Please suggest a solution.
Your proxy is probably a "any SOAP" service and since you have a REST client your proxy goes not get the SOAP request that it needs. If you are making a REST service you should select "none" for input and xml for output.