Hi Mike,
So far I have only limited experience, so the following may be
"inaccurate". Hopefully someone else will correct me though!
It seems to me untidy and dangerous (from a maintenance point of view)
to be using both your "original" and "WSDL2Java generated" classes. The
development process I settled on here is to (partially) model
bean/array/enum classes in Rational Rose, do a code-gen, build,
Java2WSDL, and then WSDL2Java which overwrites the original sources
generated by Rose. This works well and prevents confusion caused by
having pairs of classes that do the same thing.
Something you might want to check is why your "WSDL2Java generated"
Product class is abstract. I haven't found this to be the case for any
of my classes, and I'm not sure from your info as to whether you have
deliberately made it this way somehow.
Steve
"Michael
Fecina" To: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED] cc:
du> Subject: what classes should be used?
11/11/2002
02:24
Please
respond to
axis-user
Hello,
I'm working through deploying my web service. However, there's this one
problem that won't
leave me alone.
I have a folder (a package) named groceryWebService1. Within this
package, I have a folder (and hence
another package) named groceryWebService1.ws. Note that the files
within the folder groceryWebService1.ws
are essentially the same file names as those within my original package,
and were created by running the WSDL2Java command.
Now that I have all these new files that seem to be interfaces with RMI
stuff attached, when I actually go to write
a client that calls my service, I get an error because I'm trying
something like:
(*gws is a remote interface. it's functions searchProductList and
getProductTree expect return type groceryWebService1.ws.Product and
groceryWebService1.ws.ProductTree respectively*)
Product p = new Product();
p = gws.searchProductList(blah, blah);
Obviously, I get an error saying that gws.searchProductList is required
to return type groceryWebService1.ws.Product, and
groceryWebService1.Product is found. Now, I know I can go through all
the genreated code and change the rturn types for all the functions that
need be. However, is this necessary? Should I be using the Product
class that is created by axis, or my original Product class that has no
RMI or anything of the sort? I woudl suspect th eneed to use the one
created by axis, but I can't instantiate a 'new' one since it is
abstract.
The same goes for all the other supplementary classes I have
(ProductTree, Node, Category, etc.).
Any information would be greatly appreciated.
Thanks,
Mike Fecina ([EMAIL PROTECTED])