Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisFault


          outputMessage.serialize(omOutput);
          omOutput.flush();
          out.flush();
        }
      } catch (Exception e) {
        throw new AxisFault("Stream error", e);
      }
    } else {
      throw new AxisFault("the OUTPUT message is Null, nothing to write");
    }
  }
View Full Code Here


        if (moduleref != null) {
            Collection collectionModule = (Collection) this.getComponentProperty(MODULEREF_KEY);
            for (Iterator iterator = collectionModule.iterator(); iterator.hasNext();) {
                ModuleDescription   modu = (ModuleDescription) iterator.next();
                if(modu.getName().equals(moduleref.getName())){
                    throw new AxisFault(moduleref.getName().getLocalPart()+ " module has alredy engaged to the seevice" +
                            "  operation terminated !!!");
                }

            }
        }
View Full Code Here

            }



        } catch (WSDLException e) {
            throw new AxisFault(e);
        } catch (IOException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

            try {
                XMLStreamReader xmlreader = XMLInputFactory.newInstance().createXMLStreamReader(in);
                StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader);
                msgContext.setEnvelope((SOAPEnvelope) builder.getDocumentElement());
            } catch (Exception e) {
                throw new AxisFault(e.getMessage(), e);
            }
            engine.receive(msgContext);

        } catch (Throwable e) {
            try {
View Full Code Here

            Folder root = store.getDefaultFolder();
            inbox = root.getFolder("inbox");


        } catch (NoSuchProviderException e) {
            throw new AxisFault(e);
        } catch (MessagingException e) {
            throw new AxisFault(e);
        }
   
    }
View Full Code Here

    public void disconnect() throws AxisFault{
        try {
            inbox.close(true);
            store.close();
        } catch (MessagingException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

            } else {
                return msgs;
            }

        } catch (NoSuchProviderException e) {
            throw new AxisFault(e);
        } catch (MessagingException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

        AsyncResult result = new AsyncResult(messgeCtx);
        if (callback != null) {
            callback.onComplete(result);
            callback.setComplete(true);
        }else{
            throw new AxisFault("The Callback realtes to MessageID "+ messageID + " is not found");
        }
    }
View Full Code Here

        try {
            socket.shutdownOutput();
            msgContext.setProperty(
                MessageContext.TRANSPORT_IN,socket.getInputStream());
        } catch (IOException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

                    new InetSocketAddress(url.getHost(), url.getPort() == -1 ? 80 : url.getPort());
                socket = new Socket();
                socket.connect(add);
                return socket.getOutputStream();
            } catch (MalformedURLException e) {
                throw new AxisFault(e.getMessage(), e);
            } catch (IOException e) {
                throw new AxisFault(e.getMessage(), e);
            }
        } else {
            throw new AxisFault("to EPR must be specified");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.AxisFault

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.