You are here: Machine Registration > deleteFingerprint

Delete Fingerprint

Description

This Web service deletes fingerprints of customer’s machines from Cloud Connect database.

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

Default Protocol Method Type URI
HTTPS POST deleteFingerprint.xml

Post Parameters

Parameter Description Valid Values Optional
fingerPrintInfo Fingerprint of customer’s machine String No

Input XML

<FingerPrintDetails>
  <FingerprintList>
    <Fingerprint>
      <FingerprintId>1</FingerprintId>
      <CustomerRefId>test</CustomerRefId>
    </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 deleteFingerprint.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/deleteFingerprint.xml");
		List<NameValuePair> nvps = new ArrayList<NameValuePair>();
		nvps.add(new BasicNameValuePair("fingerPrintInfo", ""));
		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.
1129 Error occurred while decoding the fingerprint value. Please contact the system administrator for further assistance.
1194 FingerprintId {field} does not belong to CustomerRefId specified.