Examples of readAsSOAPMessage()


Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

       * Step 4.1: If message is fault message, set status to false and send fault information.
       */
      if (message.isFault()) {
        // Access SOAP fault.
        try {
          SOAPFault faultObj = message.readAsSOAPMessage().getSOAPBody().getFault();
          HashMap<String,Object> detail = new HashMap<String, Object>();
          try {
            fillChildElementInfo(faultObj.getDetail().getChildNodes(),4,detail);
          } catch(Throwable th){/*Dont mind about custom message set fail*/}
          responseJSONMap.put(FAULT,new JSONFault(faultObj.getFaultCodeAsQName().getLocalPart().toUpperCase(),
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

          }
        }
      } else if(responseParameters != null && responseParameters.size() == 1){
        // object deserialized. might perform bad.
        ParameterImpl     parameter   = responseParameters.get(0);
        Iterator<Node>     paramBody   = message.readAsSOAPMessage().getSOAPBody().getChildElements(parameter.getName());
        if(paramBody.hasNext()){
          Element responseElm = (Element)paramBody.next();
          if(parameter.isWrapperStyle()){
            List<ParameterImpl> children = ((WrapperParameter)parameter).getWrapperChildren();
            for(ParameterImpl param : children){
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

        SOAPMessage soapMsg = null;
        try {
            //before converting to SOAPMessage, make a copy.  We don't want to consume
            //the original message
            Message mutable = packet.getMessage().copy();
            soapMsg = mutable.readAsSOAPMessage();
                      
        } catch (Exception e) {
            e.printStackTrace();
        }
      
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

   SOAPMessage s = null;
   if (p instanceof Packet) {
       Message m = ((Packet) p).getMessage()
       if (m != null) {
     try {
         s = m.readAsSOAPMessage();
     }catch (Exception e) {
         throw new RuntimeException(e);
     }
       }
   }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

        try {
            //before converting to SOAPMessage, make a copy.  We don't want to consume
            //the original message
            if (packet.getMessage() != null) {
                Message mutable = packet.getMessage().copy();
                soapMsg = mutable.readAsSOAPMessage();
            }

        } catch (Exception e) {
            logger.log(Level.SEVERE, LogUtils.ERROR_OCCURED, e);
        }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

   SOAPMessage s = null;
   if (p instanceof Packet) {
       Message m = ((Packet) p).getMessage()
       if (m != null) {
     try {
         s = m.readAsSOAPMessage();
     }catch (Exception e) {
         throw new RuntimeException(e);
     }
       }
   }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

   SOAPMessage s = null;
   if (p instanceof Packet) {
       Message m = ((Packet) p).getMessage()
       if (m != null) {
     try {
         s = m.readAsSOAPMessage();
     }catch (Exception e) {
         throw new RuntimeException(e);
     }
       }
   }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

        try {
            //before converting to SOAPMessage, make a copy.  We don't want to consume
            //the original message
            if (packet.getMessage() != null) {
                Message mutable = packet.getMessage().copy();
                soapMsg = mutable.readAsSOAPMessage();
            }

        } catch (Exception e) {
            logger.log(Level.SEVERE,"Error occured", e);
        }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

    public SOAPMessage getMessage() {
        if(soapMsg == null) {
            try {
              Message m = packet.getMessage();
              soapMsg = m != null ? m.readAsSOAPMessage() : null;
            } catch (SOAPException e) {
                throw new WebServiceException(e);
            }
        }
        return soapMsg;
View Full Code Here

Examples of com.sun.xml.ws.api.message.Message.readAsSOAPMessage()

            rstr = eleFac.createRSTRFrom(rstrEle);
        } else {
            try{
                // SOAPFaultBuilder builder = SOAPFaultBuilder.create(response);
                //throw (SOAPFaultException)builder.createException(null, response);
                throw new SOAPFaultException(response.readAsSOAPMessage().getSOAPBody().getFault());
            } catch (SOAPException ex){
                log.log(Level.SEVERE,
                        LogStringsMessages.WSSC_0022_PROBLEM_CREATING_FAULT(), ex);
                throw new RuntimeException(LogStringsMessages.WSSC_0022_PROBLEM_CREATING_FAULT(), 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.