use of com.sun.identity.liberty.ws.interfaces.ServiceInstanceUpdate in project OpenAM by OpenRock.
the class PPRequestHandler method getServiceInstanceUpdateHeader.
/**
* Gets the service instance update header.
*
* @exception SOAPFaultException.
*/
private ServiceInstanceUpdateHeader getServiceInstanceUpdateHeader() throws SOAPFaultException {
ServiceInstanceUpdate siu = IDPPServiceManager.getInstance().getServiceInstanceUpdate();
ServiceInstanceUpdateHeader siuHeader = siu.getServiceInstanceUpdateHeader();
if (siu.isSOAPFaultNeeded()) {
QName faultCodeServer = new QName(SOAPBindingConstants.NS_SOAP, "Server");
SOAPFaultDetail detail = new SOAPFaultDetail(SOAPFaultDetail.ENDPOINT_MOVED, null, null);
SOAPFault sf = new SOAPFault(faultCodeServer, IDPPUtils.bundle.getString("endPointMoved"), null, detail);
Message sfmsg = new Message(sf);
sfmsg.setServiceInstanceUpdateHeader(siuHeader);
SOAPFaultException sfe = new SOAPFaultException(sfmsg);
throw sfe;
}
return siuHeader;
}
Aggregations