This content has been marked as final.
Show 2 replies
-
1. Re: WebRowSet parameter
thomas.diesler Oct 19, 2005 6:30 PM (in response to dabrigo)The error says it. java.util.Map is not allowed by JAXRPC-1.1. See the spec for details of allowed types.
The reason is probably that not every language that implement web services has a notion of maps. -
2. Re: WebRowSet parameter
dabrigo Oct 20, 2005 4:24 AM (in response to dabrigo)ok but why is it throwing an error about java.util.Map if it's not used?
BTW, by now i solved my problem passing the WebRowSet as an XML String, here is a test method i wrote:public String getRowSet() throws RemoteException { StringWriter sw = new StringWriter(); WebRowSet wrs; Connection conn; ResultSet rs; try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException e) { throw new RemoteException("Driver exception", e.getCause()); } try { conn = DriverManager.getConnection("jdbc:postgresql://...", "...", "..."); } catch (SQLException e) { throw new RemoteException("Connection exception", e.getCause()); } try { Statement st = conn.createStatement(); rs = st.executeQuery("SELECT * FROM..."); } catch (SQLException e) { throw new RemoteException("SQL exception", e.getCause()); } try { wrs = new WebRowSetImpl(); wrs.populate(rs); conn.close(); wrs.writeXml(sw); return sw.toString(); } catch (Exception e) { throw new RemoteException("WebRowSet exception", e.getCause()); } }