<%-- Document : deleteconsumer Created on : May 15, 2009, 11:25:16 AM Author : Hubert A. Le Van Gong --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> Consumer Deletion

Deleting the service consumer...

<% String conskey = request.getParameter("conskey"); try { java.net.URL url = new java.net.URL(conskey); java.net.HttpURLConnection conn = (java.net.HttpURLConnection) url.openConnection(); conn.setRequestMethod("DELETE"); conn.connect(); int resp = conn.getResponseCode(); if (resp == 200) { out.println("Service consumer deleted."); } else { out.println("Service could not be deleted - Unauthorized."); } } catch (Exception ex) { ex.printStackTrace(new java.io.PrintWriter(out)); } %>

Return to Main Menu