Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to filter/block some useless complexTypes in wsdl?

 
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.
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic