Package org.apache.muse.ws.addressing.soap

Examples of org.apache.muse.ws.addressing.soap.SoapFault


            XmlUtils.toFile(entryXML, resourceFile);
        }
       
        catch (IOException error)
        {
            throw new SoapFault(error);
        }
    }
View Full Code Here


            XmlUtils.toFile(params, resourceFile);
        }
       
        catch (IOException error)
        {
            throw new SoapFault(error);
        }
    }
View Full Code Here

        //
        if (correctName != null && !correctName.equals(actualName))
        {
            Object[] filler = { correctName, actualName };
            String message = _MESSAGES.get("InvalidProxyResponse", filler);
            throw new SoapFault(message);
        }
       
        //
        // if the value is a simple type, use the root of the
        // response body
View Full Code Here

        //
        // faults that aren't network or location-related will be packaged
        // in the response's SOAP body, so we need to parse and check
        //
        if (SoapUtils.isFault(response[0]))
            throw new SoapFault(response[0]);
       
        return response[0];
    }
View Full Code Here

        if (elements.length != parameters.length)
        {
            Object[] filler = {
                method.getName(), new Integer(parameters.length), new Integer(elements.length)       
            };
            throw new SoapFault(_MESSAGES.get("IncorrectParams", filler));
        }

        SerializerRegistry registry = SerializerRegistry.getInstance();
       
        //
View Full Code Here

            return setResponse.getTerminationTime();
        }
       
        catch (ParseException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

        //
       
        if (toURI == null)
        {
            Object[] filler = { WsaConstants.TO_QNAME };
            throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
        }
       
        if (_action == null)
        {
            Object[] filler = { WsaConstants.ACTION_QNAME };
            throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
        }
       
        //
        // wsa:To is a URI, but we want to access it as an EPR
        //
        _to = new EndpointReference(URI.create(toURI));
       
        //
        // read in optional EPR values that tell us where to send replies
        //
        _faultTo = getEPR(soapHeaders, WsaConstants.FAULT_TO_QNAME);
        _from = getEPR(soapHeaders, WsaConstants.FROM_QNAME);
        _replyTo = getEPR(soapHeaders, WsaConstants.REPLY_TO_QNAME);
       
        if (_messageID == null && (_from != null || _replyTo != null))
            throw new SoapFault(_MESSAGES.get("MessageIDMissing"));
       
        Element[] children = XmlUtils.getAllElements(soapHeaders);
       
        //
        // NOTE: add all elements to the ReferenceProperties, since WS-A
View Full Code Here

        {
            //
            // the key already exists - not allowed!
            //     
            if (_resources.containsKey(epr))
                throw new SoapFault(_MESSAGES.get("ResourceEPRExists", new Object[]{ epr }));
           
            _resources.put(epr, resource);
        }
       
        //
View Full Code Here

        ResourceDefinition definition = getResourceDefinition(contextPath);
   
        if (definition == null)
        {
            Object[] filler = { contextPath, _definitionsByPath.keySet() };
            throw new SoapFault(_MESSAGES.get("ContextPathNotFound", filler));
        }
       
        Resource resource = definition.newInstance();
        resource.setResourceManager(this);
       
View Full Code Here

            // can't remove things that don't exist
            //
            if (resource == null)
            {
                Object[] filler = { epr };
                throw new SoapFault(_MESSAGES.get("ResourceEPRNotFound", filler));
            }
        }
       
        //
        // tell all listeners that the resource is gone forever
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.soap.SoapFault

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.