
Hi, this is chinna, i am trying to develop a web service that has to return one table data. i have taken table data in a two dimensional array
for soap request i have passed one value to get table data
in soap response i am getting in the following format
This is my web service code
public String[][] ProjectDetails(@WebParam(name = "ProjectDefinition") String ProjectDefinition) throws JCoException { String[][] projects = new String[codes.getNumRows()][2]; for (int i = 0; i < codes.getNumRows(); i++) { codes.setRow(i); projects[i][0] = codes.getString("WBS_ELEMENT"); String des1 = codes.getString("DESCRIPTION"); String des = des1; String v1 = "¼â??"; String v2 = "¾â??"; String v3 = "½â??"; if (des1.contains(v1)) { des = des1.replaceAll("¼â??", "1/4"); } else if (des1.contains(v2)) { des = des1.replaceAll("¾â??", "3/4"); } else if (des1.contains(v3)) { des = des1.replaceAll("½â??", "1/2 "); } projects[i][1] = des; System.out.println("I VALUE :" + i + "WBS :" + projects[i][0] + "DES" + projects[i][1]); } return projects; }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.