error when call fuction ArrayList in WebService ???
-
hi all. i have fuction showdata in Webserivice: public ArrayList showdata() { ... ArrayList arr = new ArrayList(); while (reader.next()) { int id = reader.getInt("id"); String content = reader.getString("content"); Time time = reader.getTime("time"); arr.add(new GetData(id, content, time)); } return arr; } class GetData { private int ID; private String CONTENT; private Time TIME; public GetData(int id, String content, Time time){ ID = id; CONTENT = content; TIME = time; } } ############################# in web client . get data from database via showdata() from sebservice. <% SW2Service sv = new SW2Service(); SW2 port = sv.getSW2Port(); ArrayList arr = new ArrayList(); arr = port.showdata(); ==> Erro this %> please help me nothing
-
hi all. i have fuction showdata in Webserivice: public ArrayList showdata() { ... ArrayList arr = new ArrayList(); while (reader.next()) { int id = reader.getInt("id"); String content = reader.getString("content"); Time time = reader.getTime("time"); arr.add(new GetData(id, content, time)); } return arr; } class GetData { private int ID; private String CONTENT; private Time TIME; public GetData(int id, String content, Time time){ ID = id; CONTENT = content; TIME = time; } } ############################# in web client . get data from database via showdata() from sebservice. <% SW2Service sv = new SW2Service(); SW2 port = sv.getSW2Port(); ArrayList arr = new ArrayList(); arr = port.showdata(); ==> Erro this %> please help me nothing
What is the error you are getting from the service and what type of service are you using (eg: Swing, Axis, generic SOAP)? Please note that if you are using an implementation of a SOAP (Axis/Swing) service arraylists are not the way to go, as these could cause issues in the serialization and deserialization.
-
What is the error you are getting from the service and what type of service are you using (eg: Swing, Axis, generic SOAP)? Please note that if you are using an implementation of a SOAP (Axis/Swing) service arraylists are not the way to go, as these could cause issues in the serialization and deserialization.
-
Please help you to do what? If you ask a specific question you will stand more chance of getting a useful answer.
-
Please help you to do what? If you ask a specific question you will stand more chance of getting a useful answer.
-
And what is the error that is being thrown. Only knowing that something throws an exception doesn't really help anyone to give you clues as to how to fix it.
-
hi all. i have fuction showdata in Webserivice: public ArrayList showdata() { ... ArrayList arr = new ArrayList(); while (reader.next()) { int id = reader.getInt("id"); String content = reader.getString("content"); Time time = reader.getTime("time"); arr.add(new GetData(id, content, time)); } return arr; } class GetData { private int ID; private String CONTENT; private Time TIME; public GetData(int id, String content, Time time){ ID = id; CONTENT = content; TIME = time; } } ############################# in web client . get data from database via showdata() from sebservice. <% SW2Service sv = new SW2Service(); SW2 port = sv.getSW2Port(); ArrayList arr = new ArrayList(); arr = port.showdata(); ==> Erro this %> please help me nothing
Please mention error which you getting in your code.