Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisFault


        if (messageLabel == WSDLConstants.MESSAGE_LABEL_IN) {
            return inMessageContext;
        } else if (messageLabel == WSDLConstants.MESSAGE_LABEL_OUT) {
            return outMessageContext;
        } else {
            throw new AxisFault("Unrecognized message label: '" + messageLabel
                    + "'");
        }
    }
View Full Code Here


            ConfigurationContext configContext = erfac.buildConfigurationContext(dir);
            this.configContext = configContext;
            Thread.sleep(3000);
            serversocket = new ServerSocket(port);
        } catch (DeploymentException e1) {
            throw new AxisFault(e1);
        } catch (InterruptedException e1) {
            throw new AxisFault(e1);
        } catch (IOException e1) {
            throw new AxisFault(e1);
        }
    }
View Full Code Here

    public TCPServer(int port, ConfigurationContext configContext) throws AxisFault {
        try {
            this.configContext = configContext;
            serversocket = new ServerSocket(port);
        } catch (IOException e1) {
            throw new AxisFault(e1);
        }
    }
View Full Code Here

    public void stop() throws AxisFault {
        try {
            this.serversocket.close();
            started = false;
        } catch (IOException e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

    public void testAxisFault() {
        Exception e = new InvocationTargetException(new Exception());
        assertNotSame(AxisFault.makeFault(e), e);

        e = new AxisFault("");
    }
View Full Code Here

        String password = req.getParameter("password");
        if (username == null
                || password == null
                || username.trim().equals("")
                || password.trim().equals("")) {
            throw new AxisFault("invalid user name");
        }
        String adminUserName =
                (String) ((AxisConfigurationImpl) configContext.getAxisConfiguration())
                .getParameter(Constants.USER_NAME)
                .getValue();
        String adminPassword =
                (String) ((AxisConfigurationImpl) configContext.getAxisConfiguration())
                .getParameter(Constants.PASSWORD)
                .getValue();
        if (username != null
                && password != null
                && username.equals(adminUserName)
                && password.equals(adminPassword)) {
            req.getSession().setAttribute(Constants.LOGGED, "Yes");
            res.sendRedirect(ADMIN_JSP_NAME);
        } else {
            throw new AxisFault("invalid user name");
        }
    }
View Full Code Here

                    System.out.println(subject);
                    System.out.println(email);

                    sender.send(subject, email,new String(byteArrayOutputStream.toByteArray()));
                } else {
                    throw new AxisFault(
                        "user, port, host or password not set, "
                            + "   [user null = "
                            + (user == null)
                            + ", password null= "
                            + (password == null)
                            + ", host null "
                            + (host == null)
                            + ",port null "
                            + (smtpPort == null));

                }
            } catch (IOException e) {
                throw new AxisFault(e);
            }


    }
View Full Code Here

                }
                URLs.add(file.toURL());
                urlsToLoadFrom = new URL[]{file.toURL()};
                classLoader = new URLClassLoader(urlsToLoadFrom, parent);
            } catch (Exception e) {
                throw new AxisFault(e);
            }
            try {
                ZipInputStream zin = new ZipInputStream(new FileInputStream(file));
                ZipEntry entry;
                String entryName = "";
View Full Code Here

        MessageContext msgContext = null;
        SimpleHTTPOutputStream out = null;
        try {
            if (socket != null) {
                if (configurationContext == null) {
                    throw new AxisFault("Engine Must be null");
                }

                InputStream inStream = socket.getInputStream();

                TransportOutDescription transportOut =
View Full Code Here

      msgContext.setEnvelope(envelope);
      AxisEngine engine = new AxisEngine(configurationContext);
      engine.receive(msgContext);
    } catch (SOAPProcessingException e) {
      throw new AxisFault(e);
    } catch (OMException e) {
      throw new AxisFault(e);
    } catch (XMLStreamException e) {
      throw new AxisFault(e);
    }
  }
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.