• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL2JAVA generating some unnecessary holder classes  RSS feed

 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

When generating java from WSDL i get a holders package which contains a class that implements javax.xml.rpc.holders.Holder

I dont need this stuff is there away that i could prevent my WSDL from generating it?

Many Thanks
 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK I realise now that the holder classes are generated because in my portType definitions... operations include and IN parameter and OUT parameter of the same type, i.e. it's thinking that I have an INOUT parameter... but they are different objects... is there a way that I can avoid this?? i.e. say you have an int IN parameter and an int OUT parameter how can u avoid having holder classes bein generated?
 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK guys I'm gonna rephrase my question one more time as I don't think it's clear enough...

WSDL2Java is generating holder classes for me as in my portType I have operations which have an IN param and OUT of the same type... in other words I am using the same object for my request and my response... it has seperate fields for input attributes and other seperate attributes for my output attributes... but I will be using a seperate object for input and seperate object for output... so I do not need those holder classes... how do I get rid of them?
 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use different objects for input and output?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!