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

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


        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

            return XmlUtils.getDate(xml);
        }
       
        catch (ParseException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

            XmlUtils.toFile(params, resourceFile);
        }
       
        catch (IOException error)
        {
            throw new SoapFault(error);
        }
    }
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

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

            return new URI(uri);
        }
       
        catch (URISyntaxException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

            return new URL(url);
        }
       
        catch (MalformedURLException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

           
            //
            // create and throw WS-A DestinationUnreachable fault
            //           
            Object[] filler = { eprNotFound, eprListing };
            SoapFault wsaFault = new SoapFault(_MESSAGES.get("DestinationUnreachable", filler));
            wsaFault.setCode(SoapConstants.SENDER_QNAME);
            wsaFault.setSubCode(WsaConstants.DESTINATION_UNREACHABLE_FAULT_QNAME);           
            throw wsaFault;
        }
       
        return resource;
    }
View Full Code Here

            return method.invoke(proxy, parameters);
        }
       
        catch (Exception error)
        {
            throw new SoapFault(error);
        }
    }
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.