YourService needs to implement an interface YourServiceInterface, or, maybe put in a cleaner way, your web service interface needs a concrete implementation class, as in:

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


Reply via email to