This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to filter/block some useless complexTypes in wsdl?  RSS feed

Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am building a POC code-first JAX-WS server application. I defined 3 xsds for all my POJOs, Request1, Request2 and RequestMeta. Both Request1 and Request2 extends RequestMeta.




All 3 xsds are in the same targent NS. I used maven-jaxb2-plugin to build 3 classes, Request1, Request2 and RequestMeta. My pom.xml has the plugin configuration as. All 3 classes generated successfully.

Now I have IHello interface and HelloImpl

I got my wsdl file as below,

Here is my question, I only used Request1 as input parameter in IHello.hello(). However, since both Request1 and Request2 extends RequestMeta, I see Request2 is also in my wsdl file. Is there any way that I can get rid of Request2 from this wsdl because it should not be part of this wsdl.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!