java - Is ArrayList supported in Apache Axis Web service? -



java - Is ArrayList supported in Apache Axis Web service? -

i have written simple helloworld web service. takes arraylist parameter. code simple `import java.util.arraylist;

public class service { public void service(arraylist<object> list) { system.out.println("hello world.."); } }`

i using eclipse helios sr1 , trying geneate web service. selecting webservice implementation "service" , selecting server runtime tomcat 6.0 , webservice runtime apache axis. clicking on next gives warning service class "service" not comply 1 or more requirements of jax-rpc 1.1 specification, , may not deploy or function correctly. method "service" on service class "service" uses info type, "java.util.arraylist", not supported jax-rpc specification. instances of type may not serialize or deserialize correctly. loss of info or finish failure of web service may result.

clicking ok go on , shows more warning 1 1 : input type java.lang.class non-instantiable type , omitted sample jsp. go on sample jsp generation?

the input type javax.xml.namespace.qname non-instantiable type , omitted sample jsp. go on sample jsp generation?

iwab0189w sample jsp client omitted methods because contained unsupported types.

any reason why may happening? saw on sun site : sun rpc doc

according arraylist should supported.

any help?

as quoted specification.

arrays

jax-rpc supports arrays members of supported jax-rpc types. examples of supported arrays int[] , string[]. multidimensional arrays, such bigdecimal[][], supported.

a simple modification of method signature take array opposed arraylist should prepare problem.

java web-services apache arraylist tomcat6

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -