// create an AddPublisherAssertions request & invoke the server
AddPublisherAssertions apaReq = new AddPublisherAssertions();
apaReq.setAuthInfo(new AuthInfo(authInfo));
apaReq.setPublisherAssertionVector(assertionVector);
DispositionReport dspRpt1 = (DispositionReport)(new AddPublisherAssertionsFunction(reg).execute(apaReq));
System.out.println("errno: "+dspRpt1.toString());
DispositionReport dspRpt2 = (DispositionReport)(new AddPublisherAssertionsFunction(reg).execute(apaReq));
System.out.println("errno: "+dspRpt2.toString());
// create an DeletePublisherAssertions request & invoke the server
DeletePublisherAssertions dpaReq = new DeletePublisherAssertions();
dpaReq.setAuthInfo(new AuthInfo(authInfo));
dpaReq.setPublisherAssertionVector(assertionVector);
DispositionReport response = (DispositionReport)(new DeletePublisherAssertionsFunction(reg).execute(dpaReq));
System.out.println("errno: "+response.toString());
}
catch (Exception ex)
{
// write execption to the console
ex.printStackTrace();