try {
String service = httpServletRequest.getParameter("service");
if (service == null) {
MethodGatewayResponse mGateway = new MethodGatewayResponse();
mGateway.setMessage("No Service given");
XStream xStream = new XStream(new XppDriver());
xStream.setMode(XStream.NO_REFERENCES);
String xmlString = xStream.toXML(mGateway);
OutputStream out = httpServletResponse.getOutputStream();
out.write(xmlString.getBytes());
return;
}
String method = httpServletRequest.getParameter("method");
if (method == null) {
MethodGatewayResponse mGateway = new MethodGatewayResponse();
mGateway.setMessage("No Method given");
XStream xStream = new XStream(new XppDriver());
xStream.setMode(XStream.NO_REFERENCES);
String xmlString = xStream.toXML(mGateway);