Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisFault


        AxisEngine engine = new AxisEngine(configurationContext);
        engine.receive(msgContext);
        return true;
      }
    } catch (IOException e) {
      throw new AxisFault(e);
    }
  }
View Full Code Here


    public static final void makeSureStarted(
        String transport,
        ConfigurationContext configurationContext)
        throws AxisFault {
        if (ListenerManager.configurationContext != null && configurationContext != ListenerManager.configurationContext) {
            throw new AxisFault("Only One ConfigurationContext Instance we support at the Client Side");
        }

        ListenerManager.configurationContext = configurationContext;
        TransportListnerState tsState = (TransportListnerState) listeners.get(transport);
        if (tsState == null) {
View Full Code Here

        throws AxisFault {
        TransportListnerState tsState = (TransportListnerState) listeners.get(transport);
        if (tsState != null) {
            return tsState.listener.replyToEPR(serviceName);
        } else {
            throw new AxisFault(
                "Calling method before starting the with makeSureStarted(..) Listener transport =  "
                    + transport);

        }
View Full Code Here

            try {
                return new ServerSocket(port + i);
            } catch (IOException e) {
            }
        }
        throw new AxisFault("failed to open the scoket");
    }
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 operation" +
                            "  operation terminated !!!");
                }

            }
        }
View Full Code Here

            //      operationContext =
            ConfigurationContext configContext = msgContext.getSystemContext();
            operationContext = configContext.getOperationContext(msgContext.getRelatesTo().getValue());

            if (null == operationContext) {
                throw new AxisFault("Cannot relate the message in the operation :"
                        + this.getName()
                        + " :Unrelated RelatesTO value "
                        + msgContext.getRelatesTo().getValue());
            }
View Full Code Here

            }
            msgContext.getOperationContext().setProperty(
                Constants.RESPONSE_WRITTEN,
                Constants.VALUE_TRUE);
        } catch (XMLStreamException e) {
            throw new AxisFault(e);
        } catch (FactoryConfigurationError e) {
            throw new AxisFault(e);
        }
    }
View Full Code Here

            this.httpClient.executeMethod(hostConfig, postMethod);
            if(postMethod.getStatusCode() == HttpStatus.SC_OK){
                InputStream in = postMethod.getResponseBodyAsStream();
                if(in == null){
                    throw new AxisFault("Input Stream can not be Null");
                }
                msgContext.getOperationContext().setProperty(MessageContext.TRANSPORT_IN,in);
            }else if(postMethod.getStatusCode() == HttpStatus.SC_ACCEPTED){
                return;                             
            }else{
                throw new AxisFault("Error "+ postMethod.getStatusCode() "  Error Message is "+postMethod.getResponseBodyAsString());
            }
        } catch (MalformedURLException e) {
            throw new AxisFault(e);
        } catch (HttpException e) {
            throw new AxisFault(e);
        } catch (IOException e) {
            throw new AxisFault(e);
        }

    }
View Full Code Here

                    this.chuncked = true;
                }
            } else if (HTTPConstants.HEADER_PROTOCOL_10.equals(version.getValue())) {
                //TODO HTTP1.0 specific parameters
            } else {
                throw new AxisFault(
                    "Parameter "
                        + HTTPConstants.PROTOCOL_VERSION
                        + " Can have values only HTTP/1.0 or HTTP/1.1");
            }
        }
View Full Code Here

                    extractReferenceParameters(header, msgContext.getMessageInformationHeaders());

                } else {
                    // Addressing headers are not present in the SOAP message
                    if (!isAddressingOptional) {
                        throw new AxisFault("Addressing Handlers should present, but doesn't present in the incoming message !!");
                    }
                    logger.debug("No Addressing Headers present in the IN message. Addressing In Handler does nothing.");
                }
            }
            msgContext.setProperty(WS_ADDRESSING_VERSION, addressingNamespace, true);
        } catch (AddressingException e) {
            logger.info("Exception occurred in Addressing Module");
            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.