Skip to Content
0
Former Member
Dec 27, 2007 at 11:08 AM

Formating the response of Java webservice to table structure in webdynpro

46 Views

Hi All,

I am stuck at a point where I have a Java Webservice resulting an ArrayList Response.

My webdynpro will have to populate the ArrayList response into a table.

Below is the piece of code am using to execute my webservice.

CODE :

JavajdbcModel md = new JavajdbcModel();

Request_Display reqDisp= new Request_Display(md);

try

{

reqDisp.execute();

wdComponentAPI.getMessageManager().reportSuccess("Str: "+reqDisp.getResponse());

}

RESULT :

<modelObject class="Response_Display"><target roleName="DisplayResponse"><modelObject class="DisplayResponse"><attribute name="Response" value="[[i01111, USSS, DSGTechTwo, DEF], [i012345, USSS, DSGTechOne, ABC], [i067890, USSS, DSGTechTwo, DEF], [i07777, USSS, DSG, ggg], [i08888, cccc, vvvv, bbbb], [io3333, USSS, DSGTechOne, abc]]"/></modelObject></target></modelObject>

The required output are the values that are with the blue font above.

I have tried with methods like :

getAttributeValue, getResult - but are of not much help.

Could you please help me out in this.

Thanks & Regards,

Suyukti. B N.