You are here: On-premise License Management > deleteActiveStations

Delete Active Stations

This Web service is used for revoking detached licenses installed on an on-premise machine and freeing up the station count. The input of this Web service is formed by using the output of the Retrieve Active Stations Web service.

This Web service is available only for on-premise entitlement level licensing.

Description

Default Protocol Method Type URI
HTTPS POST deleteActiveStations.xml

Query Parameters

Parameter Description Valid Values Optional
fingerPrintInfo Fingerprint XML of on-premise machine for which you want to cancel the detached licenses. It uses the output of the Retrieve Active Stations Web service. String No

Input XML

<FingerPrintDetails>
  <FingerprintList>
    <Fingerprint>
      <FingerprintId>1</FingerprintId>
    </Fingerprint>
  </FingerprintList>
</FingerPrintDetails>
         

Sample Code

import java.io.IOException;
//..............................
//..............................
//..............................
import org.apache.http.params.HttpParams;
public class EMSSample {
	private static DefaultHttpClient httpclient = new DefaultHttpClient();
	private static Principal principal = null;
//..............................
//..............................
//..............................
public static String deleteActiveStations.xml()throws Exception {
    if(!verifyLogin()){
        	return "login failed";
    }
    	HttpContext context = new BasicHttpContext();
    	context.setAttribute(ClientContext.USER_TOKEN, principal);
    	HttpPost post =  new HttpPost("https://localhost:8443/ems/3.6/deleteActiveStations.xml");
    List<NameValuePair> nvps = new ArrayList<NameValuePair>();
    	nvps.add(new BasicNameValuePair("fingerPrintInfo", "<?xml version="1.0" encoding="UTF-8"?>
<FingerPrintDetails>
<FingerprintList>
<Fingerprint>
<FingerprintId>1</FingerprintId>
</Fingerprint>
</FingerprintList>
</FingerPrintDetails>"));
    	post.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
    HttpResponse response = httpclient.execute(post, context);
    HttpEntity entity = response.getEntity();
    byte[] b = null;
    if (entity != null) {
        long l = entity.getContentLength();
         b = new byte[(int) l];
         entity.getContent().read(b);
         entity.consumeContent();
     	}
    	return new String(b);
    	}
    	}

Sample Response

<emsResponse>
   <stat>ok</stat>
   <deleteStation>
      <fingerPrintId>1</fingerPrintId>
      <status>success</status>
   </deleteStation>
</emsResponse>
See Also:

Output Format for Failure

Error Codes

Error Code Description
101 You are not authorized to use this service.
128 You should log on first.
1114 Invalid XML string provided. Provide a valid XML.
1157 Error in deleting active stations. Please contact the system administrator for further assistance.