Package org.codehaus.xfire.fault

Examples of org.codehaus.xfire.fault.XFireFault


       
        Attachment att = AttachmentUtil.getAttachment(href, context.getInMessage());
       
        if (att == null)
        {
            throw new XFireFault("Could not find the attachment " + href, XFireFault.SENDER);
        }
       
        try
        {
            return readAttachment(att, context);
        }
        catch (IOException e)
        {
            throw new XFireFault("Could not read attachment", e, XFireFault.SENDER);
        }
    }
View Full Code Here


           
            return builder.build(reader).getRootElement();
        }
        catch (XMLStreamException e)
        {
            throw new XFireFault("Could not parse xml.", e, XFireFault.SENDER);
        }
    }
View Full Code Here

        {
            serializer.writeElement(el, ((ElementWriter) writer).getXMLStreamWriter());
        }
        catch (XMLStreamException e)
        {
            throw new XFireFault("Could not write xml.", e, XFireFault.SENDER);
        }
    }
View Full Code Here

           
            return builder.build(reader);
        }
        catch (XMLStreamException e)
        {
            throw new XFireFault("Could not parse xml.", e, XFireFault.SENDER);
        }
    }
View Full Code Here

        {
            serializer.writeElement(doc.getRootElement(), ((ElementWriter) writer).getXMLStreamWriter());
        }
        catch (XMLStreamException e)
        {
            throw new XFireFault("Could not write xml.", e, XFireFault.SENDER);
        }
    }
View Full Code Here

    {
        AbstractSoapBinding binding = (AbstractSoapBinding) context.getBinding();
       
        if (binding == null)
        {
            throw new XFireFault("Could not find appropriate binding for service: " + context.getService().getName(),
                                 XFireFault.RECEIVER);
        }
       
        MessageSerializer ser = binding.getSerializer(context.getExchange().getOperation());
View Full Code Here

           
            // finishReadingMessage(msg, context);
        }
        catch (Exception e)
        {
            XFireFault fault = XFireFault.createFault(e);
            context.setProperty(DefaultFaultHandler.EXCEPTION, fault);

            pipeline.handleFault(fault, context);
           
            try
View Full Code Here

                       
                        message.setSoapVersion(reader.getNamespaceURI());
                       
                        if (message.getSoapVersion() == null)
                        {
                            throw new XFireFault("Invalid SOAP version: " + reader.getNamespaceURI(),
                                                 XFireFault.SENDER);
                        }
                    }
                    break;
                default:
View Full Code Here

                     " Destination: " + jmsMessage.getStringProperty("Destination") +
                     " JMSType: " + jmsMessage.getJMSType());
        }
        catch (JMSException e)
        {
            throw new XFireFault("Error sending message", e, XFireFault.SENDER);
        }
    }
View Full Code Here

        if (context.getOutPipeline().understands(name))
            return;

        // TODO: Check Out pipeline for understanding
       
        throw new XFireFault("Header {" + name.getLocalPart() + "}" + name.getNamespaceURI()
                + " was not undertsood by the service.", XFireFault.MUST_UNDERSTAND);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.fault.XFireFault

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.