Package javax.wsdl

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


        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);

        Properties soapActions = new Properties();
        soapActions.setProperty("Operation", namespace + "/Action");
        provider.setSoapActions(soapActions);
View Full Code Here

        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);

        Properties soapActions = new Properties();
        soapActions.setProperty("Operation", namespace + "/Action");
        provider.setSoapActions(soapActions);
View Full Code Here

        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);

        Properties soapActions = new Properties();
        soapActions.setProperty("Operation", namespace + "/Action");
        provider.setSoapActions(soapActions);
View Full Code Here

                    output.setMessage(message);
                    operation.setOutput(output);
                }
                //loop to add fault
                Collection<FaultInfo> faults = operationInfo.getFaults();
                Fault fault = null;
                for (FaultInfo faultInfo : faults) {
                    fault = def.createFault();
                    fault.setName(faultInfo.getFaultName().getLocalPart());
                    message = def.createMessage();
                    buildMessage(message, faultInfo, def);
                    this.addExtensibilityAttributes(fault, faultInfo.getExtensionAttributes());
                    fault.setMessage(message);
                    operation.addFault(fault);
                }
            }
            portType.addOperation(operation);
        }
View Full Code Here

            OperationInfo oparationInfo = (OperationInfo) customOperations.next();
            //need to determine if fault is instanceof BaseFault
            Iterator faultIterator = oparationInfo.getFaults().values().iterator();
            while (faultIterator.hasNext())
            {
                Fault fault = (Fault) faultIterator.next();
                Message message = fault.getMessage();
                Map parts = message.getParts();
                if (parts.size() != 1)
                {
                    throw new Exception( "WSDL fault message should have exactly one part." );
                }
View Full Code Here

            m_methodSig += " throws ";
            Iterator iterator = m_faults.keySet().iterator();
            while (iterator.hasNext())
            {
                String faultName = (String) iterator.next();
                Fault fault = (Fault) m_faults.get(faultName);
                Part part = (Part) fault.getMessage().getParts().values().iterator().next();
                String javaPackageName = GenerationUtils.getJavaPackageName( targetNamespace );
                if(part.getElementName() == null)
                {
                    //its a type..get the name of the type
                    faultName = part.getTypeName().getLocalPart();
View Full Code Here

                // 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

        }

        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()));               
                operationType.getRaises().add(raisestype);
View Full Code Here

        if (faultMsg == null) {
            throw new RuntimeException("Fault message for exception " + exceptionName + " not found");
        }

        // 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

TOP

Related Classes of javax.wsdl.Fault

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.