File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error in wsgen when using Collections interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Error in wsgen when using Collections interfaces" Watch "Error in wsgen when using Collections interfaces" New topic
Author

Error in wsgen when using Collections interfaces

Ankit Nagpal
Ranch Hand

Joined: Sep 09, 2008
Posts: 47

Hi,

I am using java.util.List interface as a parameter in my web method (using JAX-WS) but when I use the wsgen utility, it gives me an error that interfaces cannot be used as a parameter as it cannot do a new List(). Also, I could also see an XML schema associated with WSDL in the <types> section. My questions:

1) When, in the request/response model, would it require a new List()?
2) I read that <types> section is always empty when we use RPC/literal style and use, why is it still there in the WSDL?

Ankit.
 
 
subject: Error in wsgen when using Collections interfaces
 
Threads others viewed
JAX-WS wsgen using Maven2
Missing wsdl namespace on wsdl file generated using wsgen
JAX-WS web service simple example
Where to use wsgen?
calling webservices
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com