Package org.codehaus.xfire.jaxws

Source Code of org.codehaus.xfire.jaxws.SubscribeServiceTest

package org.codehaus.xfire.jaxws;

import org.codehaus.xfire.annotations.AnnotationServiceFactory;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.test.AbstractXFireTest;
import org.jdom.Document;

public class SubscribeServiceTest extends AbstractXFireTest {

    private AnnotationServiceFactory osf;
   
    public void setUp()
            throws Exception
    {
        super.setUp();
       
        osf = new JAXWSServiceFactory(getXFire().getTransportManager());

        Service service = osf.create(SubscribeService.class);

        getXFire().getServiceRegistry().register(service);
    }

    public void testService()
            throws Exception
    {
        Document response = invokeService("SubscribeService",
                                          "/org/codehaus/xfire/jaxws/wsn-subscribe.xml");
       
        assertNotNull(response);
        assertNoFault(response);

        addNamespace("wsnt", "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd");
        assertValid("//wsnt:SubscribeResponse", response);
    }   
}
TOP

Related Classes of org.codehaus.xfire.jaxws.SubscribeServiceTest

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.