1) By default for each capability, wsdl2java will create two java files. One is just an interface, while the other is a class which implements that interface. It just follows the class-interface pattern. At minimum, you only need the class.
2) The capability class is given a default package and class name which matches the capability's URI. You can rename the package and class to fit your needs. Just make sure you update its reference in the muse.xml. 3) By default, wsdl2java will generate one capability class per custom operation. But, a capability class can be written to contain multiple operations, not just one. So you can modify/merge what wsdl2java outputs as needed to fit your needs. Basically, wsdl2java is very basic and will create the class and method stubs for you. But normally, you will have to modify the output to fit your needs. Once you know the pattern, you will probably get to the point where you don't need wsdl2java and can create the capability classes yourself, and add the configuration to muse.xml:) -----Original Message----- From: Alexander Willner [mailto:[EMAIL PROTECTED] Sent: Sunday, September 02, 2007 12:26 PM To: [email protected] Subject: Re: WSDL2Java, Capabilities - Newbie Hi Nelson, > I would like to know if it's a default behavior that when I run > wsdl2java, it always generate IMyCapability.java and MyCapability.java yes I think it is the default behavior. > When I run wsdl2java -j2ee axis2 -wsdl SimpleResource.wsdl, it > generates the correct directories, but still java files are > IMyCapability.java and MyCapability.java. I think you should use "-descriptor FILE The Muse descriptor to use" but anyway we were not able to change to name of the MyCapability and MyService class. Have you found a solution already? Regards, Alex Am 31.08.2007 um 00:51 schrieb Nelson Kotowski: > Hi everyone, > > How're you doing? > > I'm working on Muse Tutorial and i would like to know if it's a > default behavior that when i run wsdl2java, it always generate > IMyCapability.javaand MyCapability.java, with such names, and how to > proceed if i want to change it. I mean, in the samples directory (eg., > \muse- 2.2.0-bin\samples\j2ee\simple\src\org\apache\muse\test\simple > \second) there > are pairs of capabilities files, but their names are strictly related > to the each operation defined. How come that happened :) ? Was it a > simple rename file operation? :) > > > > Another thing: When you define the Capability concept, in the > Programming Model, do you mean that one capability stand for an entire > Java Class? Or does a capability stand for methods that a Java Class > provides (i mean, a java class with 10 methods would be said to have > 10 capabilities?)? > > Best regards, > Nelson Kotowski. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
