Search in sources :

Example 16 with Message

use of com.sun.identity.liberty.ws.soapbinding.Message 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;
}
Also used : Message(com.sun.identity.liberty.ws.soapbinding.Message) QName(javax.xml.namespace.QName) ServiceInstanceUpdateHeader(com.sun.identity.liberty.ws.soapbinding.ServiceInstanceUpdateHeader) SOAPFaultDetail(com.sun.identity.liberty.ws.soapbinding.SOAPFaultDetail) SOAPFault(com.sun.identity.liberty.ws.soapbinding.SOAPFault) SOAPFaultException(com.sun.identity.liberty.ws.soapbinding.SOAPFaultException) InteractionSOAPFaultException(com.sun.identity.liberty.ws.interaction.InteractionSOAPFaultException) ServiceInstanceUpdate(com.sun.identity.liberty.ws.interfaces.ServiceInstanceUpdate)

Aggregations

Message (com.sun.identity.liberty.ws.soapbinding.Message)16 List (java.util.List)8 SOAPFaultException (com.sun.identity.liberty.ws.soapbinding.SOAPFaultException)7 ArrayList (java.util.ArrayList)6 SOAPBindingException (com.sun.identity.liberty.ws.soapbinding.SOAPBindingException)4 SOAPFault (com.sun.identity.liberty.ws.soapbinding.SOAPFault)3 SOAPFaultDetail (com.sun.identity.liberty.ws.soapbinding.SOAPFaultDetail)3 JAXBException (javax.xml.bind.JAXBException)3 SASLResponse (com.sun.identity.liberty.ws.authnsvc.protocol.SASLResponse)2 RedirectRequestElement (com.sun.identity.liberty.ws.interaction.jaxb.RedirectRequestElement)2 StatusElement (com.sun.identity.liberty.ws.interaction.jaxb.StatusElement)2 CorrelationHeader (com.sun.identity.liberty.ws.soapbinding.CorrelationHeader)2 ProviderHeader (com.sun.identity.liberty.ws.soapbinding.ProviderHeader)2 Element (org.w3c.dom.Element)2 SASLRequest (com.sun.identity.liberty.ws.authnsvc.protocol.SASLRequest)1 DSTException (com.sun.identity.liberty.ws.dst.DSTException)1 InteractionException (com.sun.identity.liberty.ws.interaction.InteractionException)1 InteractionManager (com.sun.identity.liberty.ws.interaction.InteractionManager)1 InteractionRedirectException (com.sun.identity.liberty.ws.interaction.InteractionRedirectException)1 InteractionSOAPFaultException (com.sun.identity.liberty.ws.interaction.InteractionSOAPFaultException)1