| Author |
WSDL2JAVA generating some unnecessary holder classes
|
M Jay
Ranch Hand
Joined: Sep 21, 2004
Posts: 66
|
|
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
|
SCJP J2SE 1.4<br />SCBCD J2EE 1.3
|
 |
M Jay
Ranch Hand
Joined: Sep 21, 2004
Posts: 66
|
|
|
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
Joined: Sep 21, 2004
Posts: 66
|
|
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
Joined: Mar 16, 2001
Posts: 984
|
|
|
Use different objects for input and output?
|
Please ignore post, I have no idea what I am talking about.
|
 |
 |
|
|
subject: WSDL2JAVA generating some unnecessary holder classes
|
|
|