-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shaoguang Cong wrote: > Anybody knows how to generate code from two or more WSDL files? > > According to Deepal's article > (http://www.wso2.net/articles/axis2/java/2006/09/13/working-with-axis2."), > this seems achieveable using "service group" introduced in AXIS 2. > > > I want to know whether this is a future feature or already > supported by the current code base of Axis2. Will very appreciate > for an example of what the Ant task will look like and how to > package the code into AAR files (one for each service?). I try to > solve the problem in the following scenario. > > Say I have three WSDLs: foo.wsdl, bar.wsdl and sec.wsdl. The > generated code should be packaged as -src -com.xyz.foo/ // code > for "FooService", depending on util and sec -com.xyz.bar/ // code > for "BarService", depending on util and sec -com.xyz.sec/ // code > for "SecService", depending on util -com.xyz.util/ // shared code > > Can this be done with WSDL2Java? Even the code can be generated the > way I want, how to package the code for the AAR files (without > duplicating the shared code)? I use XMLBean for data binding.
AFAIK, this is not supported in the current WSDL2Java tool and it is not listed as a feature that needs to be incorporated in future releases. However if you want to have some common code that need to be shared between few services, you can that compiled code as a jar in the lib folder of all those service archives. However you can control the package names for the generated code[1] separately. [1] http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html Best, Sanka > > Thanks. Shaoguang > > ---------------------------------------------------------------------- > Check out the all-new Yahoo! Mail beta > <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta> > - Fire up a more powerful email and get things done faster. - -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) iD8DBQFFgEC6/Hd0ETKdgNIRAgd9AJ9icf3EocN33X9WZ7beBgS4vJih5QCePVf6 /3VOXnJ5XFweiz9xoaVnIts= =DhXS -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
