-
1. Re: Using wscompile for doc/lit
jason.greene Apr 25, 2005 3:14 PM (in response to dannox02)wscompile always generates wrapper elements like this. Just keep your original interface arround and then you can rerun wscompile as many times as you like. When you edit your original interface, as long as you didn't change the name of the struct class, it will generate you a new one with the new parameters. Then you just have to change your implementation to use the new parameters.
The step-by-step doc/literal wiki does this very thing.
http://www.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep
-Jason -
2. Re: Using wscompile for doc/lit
thomas.diesler Apr 26, 2005 4:26 AM (in response to dannox02)Another option is, to start of with a req/res structures in your SEI and do the unwrapping in your impl code.
-
3. Re: Using wscompile for doc/lit
dannox02 Apr 26, 2005 8:45 AM (in response to dannox02)"thomas.diesler@jboss.com" wrote:
Another option is, to start of with a req/res structures in your SEI and do the unwrapping in your impl code.
I think this is what I'm getting at, but I can't figure out how to do that... do you mean I can start with this kind of code:public interface MathService extends Remote { public AddReply add( AddParams params ) throws RemoteException; }
And not have to change it after running wscompile? -
4. Re: Using wscompile for doc/lit
thomas.diesler Apr 26, 2005 10:44 AM (in response to dannox02)yes
-
5. Re: Using wscompile for doc/lit
dannox02 Apr 26, 2005 12:35 PM (in response to dannox02)Sounds good! Of course, this leads back to my original question... how? ;-)
I've tried a bunch of different options with wscompile, but it still produces the wrapper classes, and referenes those in the mapping file. How do I run wscompile so that the mapping file does not reference the wrapper types?
Thanks! -
6. Re: Using wscompile for doc/lit
jason.greene Apr 29, 2005 6:23 PM (in response to dannox02)I don't think there is a way to get wscompile to generate your service like this. However, you can change the jaxrpc-mapping file to use a single object that can be named by whatever name you want.
Sorry, but hopefully we can address this in the future with jbossws tools.
-Jason