Package org.codehaus.xfire.jaxws

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

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 SubscribeServiceExTest extends AbstractXFireTest {

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

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

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

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

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

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

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.