extends AbstractXFireTest
{
public void testVisitor()
throws Exception
{
ServiceFactory sf = new ObjectServiceFactory(getTransportManager(),
new MessageBindingProvider())
{
protected String getTargetNamespace(Class clazz)
{
return "urn:Echo";
}
};
Map properties = new HashMap();
properties.put(ObjectServiceFactory.PORT_TYPE, new QName("urn:Echo", "EchoPortType"));
Service service = sf.create(Echo.class,
new QName("urn:Echo", "Echo"),
getClass().getResource("echo.wsdl"),
null);
assertEquals(1, service.getBindings().size());