Package org.codehaus.xfire.spring

Examples of org.codehaus.xfire.spring.XFireConfigLoader.loadConfig()


{
    public void testConfigLoader()
        throws Exception
    {
        XFireConfigLoader configLoader = new XFireConfigLoader();
        XFire xfire = configLoader.loadConfig("META-INF/xfire/sservices.xml", null);
       
        doAssertions(xfire);
    }
   
    public void testConfigLoaderWithFilesystem()
View Full Code Here


   
    public void testConfigLoaderWithFilesystem()
        throws Exception
    {
        XFireConfigLoader configLoader = new XFireConfigLoader();
        XFire xfire = configLoader.loadConfig(getTestFile("src/test/META-INF/xfire/sservices.xml").getAbsolutePath());
       
        doAssertions(xfire);
    }

    public void testConfigLoaderWithMultipleFiles()
View Full Code Here

    public void testConfigLoaderWithMultipleFiles()
        throws Exception
    {
        XFireConfigLoader configLoader = new XFireConfigLoader();
        configLoader.setBasedir(getTestFile("."));
        XFire xfire = configLoader.loadConfig("src/test/META-INF/xfire/sservices.xml, " +
                "org/codehaus/xfire/spring/config/OperationMetadataServices.xml");
       
        doAssertions(xfire);
    }
      
View Full Code Here

    {
      ServletContext servletCtx = new MockServletContext();
      ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {"org/codehaus/xfire/spring/xfire.xml"});

        XFireConfigLoader configLoader = new XFireConfigLoader();
        XFire xfire = configLoader.loadConfig("META-INF/xfire/sservices.xml", appCtx);

        doAssertions(xfire);
    }

    private void doAssertions(XFire xfire){
View Full Code Here

    extends AbstractXFireAegisTest
{
    public void testWSDL() throws Exception
    {  
       XFireConfigLoader loader = new XFireConfigLoader();
       XFire xfire = loader.loadConfig(new File(new File(getBasedir()), "target/auth-service/META-INF/xfire/services.xml").getAbsolutePath());
      
       assertTrue(xfire.getServiceRegistry().getServices().size() == 1);
      
       Service service = xfire.getServiceRegistry().getService(new QName("urn:xfire:authenticate", "AuthService"));
      
View Full Code Here

        XFireConfigLoader configLoader = new XFireConfigLoader();

        XFire xfire;

        try {
            xfire = configLoader.loadConfig( configUrl );
        } catch (XFireException e) {
            throw new BuildException( "Failure to load the configUrl", e);
        }

        final ServiceRegistry serviceRegistry = xfire.getServiceRegistry();
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.