On Friday 29 October 2010 11:03:41 pm KARR, DAVID (ATTSI) wrote: > > -----Original Message----- > > From: Daniel Kulp [mailto:[email protected]] > > Sent: Friday, October 29, 2010 8:02 PM > > To: [email protected] > > Cc: KARR, DAVID (ATTSI) > > Subject: Re: What is the need for the > > "*PortType_*SoapHttpPort_Client.java" files, and can I avoid > > generating > > > them? > > > > On Friday 29 October 2010 6:30:04 pm KARR, DAVID (ATTSI) wrote: > > > When I generate code from my WSDL with "wsdl2java", it gets me the > > > following: > > > * JAXB classes for each request and response info type. > > > * JAXB classes for each PortType > > > > > > These are all fine. These are what I expect. > > > > > > In addition to these, I also get files with names like > > > "*PortType_*SoapHttpPort_Client.java". Each of these defines a > > > "SERVICE_NAME" QName along with a "main" method. The "main" methods > > > appear to be for testing. Is there some way to avoid generating > > > > these > > > > > classes? There doesn't appear to be a need for them. I could write > > > some exclude filters if I have to, but that'll be a little messy. > > > > What flags are you passing to wsdl2java. By default, I don't think > > it > > > does > > generate those unles you pass the -client or -all flags. > > I'm using "-client", which seemed appropriate. If I leave that off, > would I still get the PortType classes?
yes. By default, it generates the minimal stuff needed to use the wsdl. The flags add additional things to the mix. -- Daniel Kulp [email protected] http://dankulp.com/blog
