Examples of saveRequired()


Examples of javax.xml.soap.SOAPMessage.saveRequired()

        try {
            MimeHeaders headers = getHeaders(req);
            SOAPMessage request = msgFactory.createMessage(headers, req.getInputStream());
            SOAPMessage reply = onMessage(request);
            if (reply != null) {
                if (reply.saveRequired()) {
                    reply.saveChanges();
                }
                resp.setStatus(!reply.getSOAPBody().hasFault() ? HttpServletResponse.SC_OK :
                        HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
                putHeaders(reply.getMimeHeaders(), resp);
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

               // Need to saveChanges 'cos we're going to use the
               // MimeHeaders to set HTTP response information. These
               // MimeHeaders are generated as part of the save.

               if (reply.saveRequired()) {
                   reply.saveChanges();
               }

               if ( isSOAPFault (reply) ) {
                   resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

           
      if (sAC != null && wssSucceded) {
    WebServiceSecurity.secureResponse(msgContext,sAC);
      }
           
            if (reply.saveRequired()) {
                reply.saveChanges();
            }

            wsUtil.writeReply(resp, msgContext);
           
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

                // which will be flow back into the ejb container.
                implementor.handle(msgContext);
              
                SOAPMessage reply = msgContext.getMessage();
               
                if (reply.saveRequired()) {
                    reply.saveChanges();
                }
                return reply;
               
            } catch(Exception e) {
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

                Ejb2RuntimeEndpointInfo endpointInfo2 = (Ejb2RuntimeEndpointInfo)endpointInfo;
                secServ.secureResponse(endpointInfo2.getServerAuthConfig(),(StreamingHandler)endpointInfo2.getHandlerImplementor().getHandler(),msgContext);
            }
           
            if (reply.saveRequired()) {
                reply.saveChanges();
            }
            wsUtil.writeReply(resp, msgContext);
        } catch (Throwable e) {
            String errorMessage = MessageFormat.format(
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

                Ejb2RuntimeEndpointInfo endpointInfo2 = (Ejb2RuntimeEndpointInfo)endpointInfo;
                secServ.secureResponse(endpointInfo2.getServerAuthConfig(),(StreamingHandler)endpointInfo2.getHandlerImplementor().getHandler(),msgContext);
            }
           
            if (reply.saveRequired()) {
                reply.saveChanges();
            }
            wsUtil.writeReply(resp, msgContext);
        } catch (Throwable e) {
            String errorMessage = "invocation error on ejb endpoint " +
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

        fault.setFaultCode(valueCode);
        fault.setFaultString(valueString);
        Detail detail = fault.addDetail();
        detail.addDetailEntry(factory.createName("Hello"));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        if (outputmsg.saveRequired()) {
            outputmsg.saveChanges();
        }
        outputmsg.writeTo(baos);
        String xml = new String(baos.toByteArray());
        assertTrue(xml.indexOf("Hello") != -1);
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

        Detail d;
        d = fault.addDetail();
        d.addDetailEntry(factory.createName("Hello"));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        if (outputmsg != null) {
            if (outputmsg.saveRequired()) {
                outputmsg.saveChanges();
            }
            outputmsg.writeTo(baos);
        }
        String xml = new String(baos.toByteArray());
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

        fault.setFaultCode(valueCode);
        fault.setFaultString(valueString);
        Detail detail = fault.addDetail();
        detail.addDetailEntry(factory.createName("Hello"));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        if (outputmsg.saveRequired()) {
            outputmsg.saveChanges();
        }
        outputmsg.writeTo(baos);
        String xml = new String(baos.toByteArray());
        assertTrue(xml.indexOf("Hello") != -1);
View Full Code Here

Examples of javax.xml.soap.SOAPMessage.saveRequired()

         // TODO: there should be a clear transition to an immutable object model
         XOPContext.eagerlyCreateAttachments();

         // save object model changes
         SOAPMessage soapMessage = (SOAPMessage)reqMessage;
         if (reqMessage != null && soapMessage.saveRequired())
            soapMessage.saveChanges();

         return super.invoke(reqMessage, endpoint, oneway);
      }
      catch (SOAPException ex)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.