Generating client from WSDL only creating remote inteface
posted 10 months ago
I was given a WSDL to use to generate a client for use in my application. I generated a client from this wsdl using the tool built into Eclipse Juno, but it's only creating a remote interface, not a local one that I can actually use. When I try to use the code that's being generated, I'm getting the following exception when it tries to instantiate the EJB.
My belief is that the exception is occurring because I'm trying to invoke a remote interface from within my application. My first thought was to just create a new local interface and use that. The problem with dong that is that enough of the code generated uses java.rmi.Remote or throws java.rmi.RemoteException, that I would have to rewrite most of the code. I'm wondering if there's something I can change in the WSDL, or a flag I can set somewhere, to get Eclipse to generate local interfaces as well as remote? I looked through the wizard, and there's very few options, and I don't see any options for this.