protected void setUp()
throws Exception
{
super.setUp();
data = new AddressingInData();
Service service;
ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager(),
new MessageBindingProvider())
{
protected OperationInfo addOperation(Service endpoint, Method method, String use)
{
OperationInfo op = super.addOperation(endpoint, method, use);
new AddressingOperationInfo("http://example.org/action/notify", op);
return op;
}
};
factory.setStyle("document");
service = factory.create(TestWSAServiceImpl.class);
service.addInHandler(new WSATestHandler(data));
((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
((DefaultXFire) getXFire()).addFaultHandler(new AddressingOutHandler());
((DefaultXFire) getXFire()).addOutHandler(new AddressingOutHandler());
getServiceRegistry().register(service);
}