Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
L. Wei
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

RequestMeta:


Request1:


Request2:


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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!