Service serviceModel = new AnnotationServiceFactory(new Jsr181WebAnnotations(), XFireFactory.newInstance().getXFire().getTransportManager()).create(WebServiceImpl.class);
return (WebService) new XFireProxyFactory().create(serviceModel, "http://your/remote/services/ " + WebService.class.getSimpleName() );
Kalle
On 10/26/06, Marcin Gałązka <[EMAIL PROTECTED]> wrote:
How can I create client for annotated webservice (without interface)? There
is an example in docs ( http://xfire.codehaus.org/Client+API):
Service serviceModel = new
AnnotationServiceFactory().create(YourService.class);
YourService client = (YourService) new
XFireProxyFactory().create(serviceModel, "http://your/remote/url");
But it doesn't work - AnnotationServiceFactory needs concrete class, but
XFireProxyFactory needs interface...
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
