Published on WSO2 Oxygen Tank (http://wso2.org)

Consuming web application through Mashup

By kshaikh
Created 2008-05-28 10:57

Hi,

I have created a mashup to consume an existing web application using scraper object. I get the html response successfully within the mashup environment.

When I try to access the mashup service (using the WSDL endpoint) from a remote client, it returns an object reference to the response object.

What I need is the html text so that I can display it inside my portlet. Has anyone tried something similar and converted the response object to HTML and rendered it?

Thanks in advance.

Kamal

Here's the client code:

       ICSScraperStub stub;



        try {



            stub = new ICSScraperStub("http://zneta:7762/services/spai/ICSScraper");



            ICSScraperStub.GetICSSiteResponse response = stub.getICSSite();

           

            System.out.println("response from ICS mashup web service: "+response); //This prints an object reference...I need to get this back to HTML

           }

          catch(Exception e)

         {}


Source URL:
http://wso2.org/forum/thread/3650