This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL2JAVA generating some unnecessary holder classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "WSDL2JAVA generating some unnecessary holder classes" Watch "WSDL2JAVA generating some unnecessary holder classes" New topic
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: WSDL2JAVA generating some unnecessary holder classes
 
Similar Threads
Getting Axis to publish a wsdl instead of generating it
Problem with webService published from a custom wsdl
Web services Stub
java.lang.reflect.InvocationTargetException in generating WDSL from java usinng Axis2 and eclipse
Problem in returning an array in a container