|
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])
|
- Why seleton and are web service push technology? Michael Fecina
- Why seleton and are web service push technology? niksa_os
- Re: Why seleton and are web service push technolo... Ricky Ho
- RE: Why seleton and are web service push tech... Mike Oliver
- RE: Why seleton and are web service push tech... Mattia dongili
- Re: Why seleton and are web service push ... Dennis Sosnoski
- Re: what classes should be used? Steve Kinsman
