axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Levy" <>
Subject axis stubs
Date Tue, 15 Mar 2005 03:27:47 GMT

I've been working on a project where we must generate client axis stubs for
code which we maintain. This means that we generate the WSDL via java2wsdl,
then generate the stubs with wsdl2java. This all works fine, but the problem
is that the client stubs generated with wsdl2java adhere to a different
interface then the original interface. Both interfaces are almost identical,
but do not adhere to the same java interface.

Original Interface: com.original.WidgetStore#getWidget(String id):
Generated Interface: com.generated.WidgetStore#getWidget(String id):

There are a few problems with the current solution (lesser of evils);
either, (1) both interfaces have exactly the same package name and are
duplicates, or (2) the interfaces are different, and clients of the stubs
cannot cast the returned stubs to the original interface.

I'm going to have to do this over and over again for many types of services,
so I need a general solution I can automate. I've been thinking of solutions
which manipulate the java source code to modify the generated client stubs
so that they do adhere to the same interface, but was wondering if there was
possibly another way?

Thanks if you've read this far, and let me know if I didn't explain my
problem well enough.


David L

The Distillery Pty Limited
ABN 69 080 932 467
PO Box 940, Dickson ACT 2602, AUSTRALIA
Phone: +61 2 6272 0200
Fax: +61 2 6262 5151

The Distillery Inc
2111 Wilson Blvd, Suite 700,
Arlington, Virginia 22201, USA
Phone: +1 703 351 5082

The Distillery (Europe) Ltd
53 Chandos Place London WC2N 4HS
Tel: +44 (0)20 7812 6692
Fax: +44 (0)20 7812 6677

The information contained in this email and any files attached may be
confidential and/or copyrighted information of The Distillery, Third
Parties and/or the intended recipient and may be the subject of legal
privilege or public interest immunity. You may only reproduce or
distribute the material if you are expressly authorised by us to do
so. If you are not the intended recipient, any use, disclosure,
copying, circulation, forwarding, printing or publication of this
message or attached files is strictly forbidden.

If you have received this document in error or are not an intended
recipient, please notify the sender and delete from your Inbox and/or

The Distillery does not represent or warrant that files attached to
this e-mail are free from computer viruses or other defects and
liability is limited to the resupply (or cost of resupply) of the
attached files.

View raw message