You are here: Machine Registration > deleteEntitlementFingerprint

Delete Entitlement Fingerprint

Description

This Web service deletes the given machine fingerprint(s) from associated entitlement IDs.

Notes

Default Protocol Method Type URI
HTTPS POST deleteEntitlementFingerprint.xml

Post Parameters

Parameter Description Valid Values Optional
fingerPrintContractInfo Input XML containing fingerprint IDs. String No

Input XML

<FingerPrintDetails>
  <FingerprintList>
    <Fingerprint>
      <FingerprintId>1</FingerprintId>
      <eid>7daf1d7f-4362-4c30</eid>
    </Fingerprint>
  </FingerprintList>
</FingerPrintDetails>

In the input XML:

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 deleteEntitlementFingerprint.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/deleteEntitlementFingerprint.xml");
		List<NameValuePair> nvps = new ArrayList<NameValuePair>();
		nvps.add(new BasicNameValuePair("fingerPrintContractInfo", ""));
		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>
</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.
1106 Fingerprint Id does not exist. Provide a valid Fingerprint Id.
1114 Invalid XML string provided. Provide a valid XML.
1020 Invalid XML string provided. Provide a valid XML
1129 Error occurred while decoding the fingerprint value. Please contact the system administrator for further assistance.
1193 FingerprintId {field} does not belong to eid specified.