Hi Dan, The wsdl2java version is 2.2.0; I am using a RC version. Thanks Luigi
-----Messaggio originale----- Da: Daniel Jemiolo [mailto:[EMAIL PROTECTED] Inviato: giovedì 8 marzo 2007 14.21 A: [email protected] Oggetto: Re: Problem wsdl2java muse 2.2.0 what version of the build are you using (a nightly or the RC)? you can run "wsdl2java -version" to find out. if you can provide your WSDL that would also be helpful. I think I know what the problem is, but I can't be sure without the same test data. Dan "Zampella Luigi" <[EMAIL PROTECTED]> wrote on 03/08/2007 03:57:35 AM: > Hi all, > I'm trying to build under Muse 2.2.0 my own projects (a WSN Producer and > a WSN Consumer) which have been already successfully developed with Muse > 2.0.0. > I tried to regenerate my projects (consumer and producer) starting from > the WSDLs but I got the following > error from wsdl2java (contained in muse 2.2.0): > > java.lang.RuntimeException: [ID = 'NotDocLiteral'] The WSDL operation > 'Subscribe' is not doc-literal because it defines a message > with more than one message part for its SOAP Body. The SOAP Body of a > doc-literal message should contain one root request element > (with the operation name) with zero or more child elements (the > parameters). > at > org.apache.muse.tools.inspector.ResourceInspector.getInputName(ResourceI > nspector.java:482) > at > org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(Resou > rceInspector.java:325) > at > org.apache.muse.tools.inspector.ResourceInspector.getOperations(Resource > Inspector.java:562) > at > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector. > java:880) > at > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAn > alyzer.java:402) > at > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAn > alyzer.java:341) > at > org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:173) > at > org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:265) > SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception > information below. > An exception was caught: [ID = 'NotDocLiteral'] The WSDL operation > 'Subscribe' is not doc-literal because it defines a message with more > than one message part for its SOAP Body. The SOAP Body of a doc-literal > message should contain one root request element (with the operation > name) with zero or more child elements (the parameters). > The exception generated the following stacktrace: > java.lang.RuntimeException: [ID = 'NotDocLiteral'] The WSDL operation > 'Subscribe' is not doc-literal because it defines a message > with more than one message part for its SOAP Body. The SOAP Body of a > doc-literal message should contain one root request element > (with the operation name) with zero or more child elements (the > parameters). > at > org.apache.muse.tools.inspector.ResourceInspector.getInputName(ResourceI > nspector.java:482) > at > org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(Resou > rceInspector.java:325) > at > org.apache.muse.tools.inspector.ResourceInspector.getOperations(Resource > Inspector.java:562) > at > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector. > java:880) > at > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAn > alyzer.java:402) > at > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAn > alyzer.java:341) > at > org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:173) > at > org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:265) > > Note that the generation of artifacts works perfectly with wsdl2java > from Muse2.0. > Do you have any suggestions about this problem? Perhaps I'm missing some > steps... > > Thanks > Luigi > > > > > > > > > Internet Email Confidentiality Footer > ----------------------------------------------------------------------------------------------------- > La presente comunicazione, con le informazioni in essa contenute e ogni > documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' > indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i > destinatari/autorizzati siete avvisati che qualsiasi azione, copia, > comunicazione, divulgazione o simili basate sul contenuto di tali informazioni > e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 > Codice in materia di protezione dei dati personali). Se avete ricevuto questa > comunicazione per errore, vi preghiamo di darne immediata notizia al mittente > e di distruggere il messaggio originale e ogni file allegato senza farne copia > alcuna o riprodurne in alcun modo il contenuto. > > This e-mail and its attachments are intended for the addressee(s) only and are > confidential and/or may contain legally privileged information. If you have > received this message by mistake or are not one of the addressees above, you > may take no action based on it, and you may not copy or show it to anyone; > please reply to this e-mail and point out the error which has occurred. > ----------------------------------------------------------------------------------------------------- > --------------------------------------------------------------------- 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]
