Package com.sun.xml.ws.api.message

Examples of com.sun.xml.ws.api.message.Message


   if (classLoadingException != null) {
       throw new RuntimeException(classLoadingException);
   }
   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


     private boolean putSOAPInPacket(SOAPMessage m, Object p) {
   if (m == null) {
       ((Packet)p).setMessage(null);
   } else {
       Message msg = Messages.create(m);
       ((Packet)p).setMessage(msg);
   }
   return true;
     }
View Full Code Here

       
  // send the request
  Packet response = next.process(info.getRequestPacket());
 
  // check for response
  Message m = response.getMessage();

  if (m != null) {

      if (cAC != null) {
   
View Full Code Here

   return response.createResponse(Messages.create(t, this.soapVersion));
    }
   
    public boolean isTwoWay(boolean twoWayIsDefault, Packet request) {
   boolean twoWay = twoWayIsDefault;
   Message m = request.getMessage();
   if (m != null) {
      WSDLPort wsdlModel =
    (WSDLPort) getProperty(PipeConstants.WSDL_MODEL);
      if (wsdlModel != null) {
    twoWay = (m.isOneWay(wsdlModel) ? false : true);
      }
  }
   return twoWay;
    }
View Full Code Here

        String rvalue = null;
        if (messageInfo instanceof PacketMessageInfo) {
            PacketMessageInfo pmi = (PacketMessageInfo) messageInfo;
            Packet p = (Packet) pmi.getRequestPacket();
            if (p != null) {
                Message m = p.getMessage();
                if (m != null) {
                    WSDLPort port =
                            (WSDLPort) messageInfo.getMap().get("WSDL_MODEL");
                    if (port != null) {
                        WSDLBoundOperation w = m.getOperation(port);
                        if (w != null) {
                            QName n = w.getName();
                            if (n != null) {
                                rvalue = n.getLocalPart();
                            }
View Full Code Here

   if (classLoadingException != null) {
       throw new RuntimeException(classLoadingException);
   }
   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

     private boolean putSOAPInPacket(SOAPMessage m, Object p) {
   if (m == null) {
       ((Packet)p).setMessage(null);
   } else {
       Message msg = Messages.create(m);
       ((Packet)p).setMessage(msg);
   }
   return true;
     }
View Full Code Here

    
    @Override
    public NextAction processResponse(Packet response) {
        try {
            // check for response
            Message m = response.getMessage();
            if (m != null) {
                if (cAC != null) {
                    AuthStatus status = AuthStatus.SUCCESS;
                    info.setResponsePacket(response);
                    try {
View Full Code Here

        SOAPMessage soapMsg = null;
        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

     * @throws IOException
     */
    private void encodePacket(@NotNull Packet packet, @NotNull WSHTTPConnection con, @NotNull Codec codec)
        throws IOException
    {
        Message responseMessage = packet.getMessage();

        if(responseMessage == null)
        {
            if(con.getStatus() == 0)
            {
                con.setStatus(WSHTTPConnection.ONEWAY);
            }
        }
        else
        {
            if(con.getStatus() == 0)
            {
                // if the application didn't set the status code,
                // set the default one.
                con.setStatus(responseMessage.isFault()
                                                       ? HttpURLConnection.HTTP_INTERNAL_ERROR
                                                       : HttpURLConnection.HTTP_OK);
            }

            if(isClientErrorStatus(con.getStatus()))
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.api.message.Message

Copyright © 2018 www.massapicom. 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.