Hi.. and thanks for your reply.. I used the eclipse XFire plugin to
generate all the classes for me, however when I try to access the ws
using these classes i only get "passed1" displyed,
so it does failt at the creation of the service model.
Any other suggestions!?
public void webservices()throws MalformedURLException
{
System.out.println("passed1");
Service serviceModel = new
ObjectServiceFactory().create(LocationServiceImpl.class);
System.out.println("passed2");
LocationServiceImpl service = (LocationServiceImpl) new
XFireProxyFactory().create(serviceModel, "URL of the WSDL");
System.out.println(service.world());
}
> Hi,
> Assuming you are using java on client side:
[quoted text clipped - 20 lines]
> > Regards
> > Ali
Tomek - 06 Jul 2006 13:38 GMT
> XFireProxyFactory().create(serviceModel, "URL of the WSDL");
As i remeber , the second parameter is a url to service, not to wsdl.
So it should look like :
proxyFactory.create(serviceModel, "http://localhost:8080/MyService");
You could also add try/catch and see i any error occured.
Ali1980 napisal(a):
> Hi.. and thanks for your reply.. I used the eclipse XFire plugin to
> generate all the classes for me, however when I try to access the ws
[quoted text clipped - 39 lines]
> > > Regards
> > > Ali