Hi below is my code i am calling one service from main….
public static void main(String[] args) throws Exception {
// Create an XFire Service
ObjectServiceFactory serviceFactory = new ObjectServiceFactory();
Service service = serviceFactory.create(IGetCompanyInfo.class);
service.setInvoker(new BeanInvoker(new GetCompanyInfoImpl()));
// Register the service in the ServiceRegistry
XFire xfire = XFireFactory.newInstance().getXFire();
xfire.getServiceRegistry().register(service);
Service serviceModel = serviceFactory.create(IGetCompanyInfo.class);
// Create a client proxy
XFireProxyFactory proxyFactory = new XFireProxyFactory();
IGetCompanyInfo echo = (IGetCompanyInfo) proxyFactory.create(serviceModel, “http://localhost:8080/mambo-webservice-test/services/GetCompanyInfo”);
GetCompanyRequest req = new GetCompanyRequest();
req.setCompanyId(100);
GetCompanyResponse res = echo.getComapanyInfo(req);
System.out.println(res.getCompanyName());
System.exit(0);
}
i am not getting any response from there …….all values are setting properly …….but that company name is not displaying….
can u please suggest me any one…
thx in advacnce..