Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in wsgen when using Collections interfaces

Ankit Nagpal
Ranch Hand
Posts: 47
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic