Examples of Fault


Examples of javax.wsdl.Fault

                            }

                            Map faultMap = operation.getFaults();
                            Iterator faultIte = faultMap.values().iterator();
                            while (faultIte.hasNext()) {
                                Fault fault = (Fault)faultIte.next();
                                if (fault != null && fault.getMessage() != null
                                    && !msgPartsMap.containsKey(fault.getMessage().getQName())) {
                                    Node errNode = getErrorNode(document, WSDLConstants.QNAME_OPERATION,
                                                                operation.getName(), fault.getName());
                                    addError(errNode, " fault : " + fault.getName()
                                                      + " reference is not defined");
                                    isValid = false;
                                }

                            }
View Full Code Here

Examples of javax.wsdl.Fault

            part.setName(exception.getDetailType().getSimpleName());
            part.setElementName(exception.getDetailTypeReference().tagName);
            msg.addPart(part);
            msg.setUndefined(false);
            definition.addMessage(msg);
            Fault fault = definition.createFault();
            fault.setMessage(msg);
            fault.setName(exceptionName);
            operation.addFault(fault);
        }
    }
View Full Code Here

Examples of javax.wsdl.Fault

    private void addSoapFaults(Operation op, BindingOperation bindingOperation) throws ToolException {
        Map faults = op.getFaults();
        Iterator it = faults.keySet().iterator();
        while (it.hasNext()) {
            String key = (String)it.next();
            Fault fault = (Fault)faults.get(key);
            BindingFault bf = wsdlDefinition.createBindingFault();
            bf.setName(fault.getName());
            setSoapFaultExtElement(bf);
            bindingOperation.addBindingFault(bf);
        }
    }
View Full Code Here

Examples of javax.wsdl.Fault

  private void addFaultInfo(Map faults,MethodInfo methodinfo)throws WrapperFault{
    if(faults == null)
      return;
    Iterator faultIt = faults.values().iterator();
    while(faultIt.hasNext()){
      Fault fault = (Fault)faultIt.next();
      FaultInfo faultinfo = new FaultInfo(fault.getName());
      System.out.println(fault.getName()+"Fault NAME   @@@@@@@@@@@@@@@@@");
      Map parts = fault.getMessage().getParts();
      Iterator partIt = parts.values().iterator();
      while(partIt.hasNext()){
        System.out.println(" fault part name *********"+partIt.toString()  );
        faultinfo.addParam(createParameterInfo((Part)partIt.next()));
     
View Full Code Here

Examples of javax.wsdl.Fault

        Map faultMap = operation.getFaults();
        for (Iterator iterator = faultMap.entrySet().iterator(); iterator.hasNext();) {
            Map.Entry entry = (Map.Entry) iterator.next();
            String faultName = (String) entry.getKey();
            Fault fault = (Fault) entry.getValue();
            FaultDesc faultDesc = mapException(faultName, fault);

            operationDesc.addFault(faultDesc);
        }
        return operationDesc;
View Full Code Here

Examples of javax.wsdl.Fault

            // add Faults
            if (op.getFaults() != null && op.getFaults().size() > 0) {
                Map faults = op.getFaults();
                Iterator i = faults.values().iterator();              
                while (i.hasNext()) {
                    Fault fault = (Fault)i.next();
                    BindingFault bindingFault = definition.createBindingFault();
                    bindingFault.setName(fault.getName());                   
                    bindingOperation.addBindingFault(bindingFault);
                }              
            }
            bindingOperation.setOperation(op);
            binding.addBindingOperation(bindingOperation);
View Full Code Here

Examples of javax.wsdl.Fault

        }

        Map faults = op.getFaults();
        Iterator i = faults.values().iterator();              
        while (i.hasNext()) {
            Fault fault = (Fault)i.next();
            RaisesType raisestype = new RaisesType();           
            CorbaTypeImpl extype = convertFaultToCorbaType(xmlSchemaType, fault);

            if (extype != null) {
                raisestype.setException(helper.createQNameCorbaNamespace(extype.getName()));               
View Full Code Here

Examples of javax.wsdl.Fault

        // part.setElementName(element.getQName());
        part.setElementName(new QName(definition.getTargetNamespace(), exceptionName));
        faultMsg.addPart(part);

        // porttype - operation - fault
        Fault fault = definition.createFault();
        fault.setMessage(faultMsg);
        fault.setName(faultMsg.getQName().getLocalPart());
        operation.addFault(fault);

        // binding - operation - corba:operation - corba:raises
        RaisesType raisesType = new RaisesType();
        raisesType.setException(new QName(typeMap.getTargetNamespace(),
View Full Code Here

Examples of org.apache.cayenne.Fault

        return listFault;
    }
   
    public Fault getMapFault(Accessor mapKeyAccessor) {
        synchronized (mapFaults) {
            Fault fault = mapFaults.get(mapKeyAccessor);

            if (fault == null) {
                fault = new ToManyMapFault(mapKeyAccessor);
                mapFaults.put(mapKeyAccessor, fault);
            }
View Full Code Here

Examples of org.apache.cxf.interceptor.Fault

        IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        Class<?> clazz = getTypeClass();
        Constructor ctr;
        Object o;

        Fault fault = context.getFault();

        try {
            ctr = clazz.getConstructor(new Class[] {String.class, Throwable.class});
            o = ctr.newInstance(new Object[] {fault.getMessage(), fault});
        } catch (NoSuchMethodException e) {
            try {
                ctr = clazz.getConstructor(new Class[] {String.class, Exception.class});
                o = ctr.newInstance(new Object[] {fault.getMessage(), fault});
            } catch (NoSuchMethodException e1) {
                try {
                    ctr = clazz.getConstructor(new Class[] {String.class});
                    o = ctr.newInstance(new Object[] {fault.getMessage()});
                } catch (NoSuchMethodException e2) {
                    return clazz.newInstance();
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.