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);
}
}