facebook

Not coming any response from Web Service

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #267541 Reply

    nvenkatarao
    Member

    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..

    #267608 Reply

    Riyad Kalla
    Member

    Did you generate this client using MyEclipse?

    #267618 Reply

    tomeksz
    Member

    What do you mean by ” company name is not displaying….” ? do you have anything on console, like null value, exception ? Are you sure you have service up and runnig on http://localhost:8080/mambo-webservice-test/services/GetCompanyInfo ?

    #267621 Reply

    nvenkatarao
    Member

    System.out.println(res.getCompanyName()); here i am getting null value…….

    #267700 Reply

    tomeksz
    Member

    Can you post your SOAP Message ? ( you can use tcpmon to intercept it )

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Not coming any response from Web Service

You must be logged in to post in the forum log in