As Andrew said, the NPE is not present in Muse 2.2, which means that whatever the bug was, it's been fixed (the WSDL imports bug was mentioned as a probable cause). So, WSDL2Java will process your WSDL now, but it will not act entirely as expected because you're using drafts of the OASIS specs, not the ratified standards. When it processes your WSDL, WSDL2Java looks for usage of the OASIS capabilities and fills in parts of your resource definition accordingly; for example, if you use WSRP draft 09 vs. WSRF 1.2 standard, WSDL2Java will try to generate code for the WSRP operations rather than plugging in the Muse WSRP implementation.
All of our services are doc/literal services - they have to be in order to comply with the OASIS specs. Andrew has pointed out that some of the sample WSDLs have 'encoded' in their bindings, but this is a copy/paste error (the runtime doesn't read this part of the binding, so it has no effect). The Muse runtime uses SOAP 1.2 for envelope and fault elements. You are right, the WSDL/SOAP binding namespace changed from 1.1 to 1.2, so we should upgrade the sample WSDLs and WSDL2Java to use the 1.2 binding namespace. Dan "Rachana Ananthakrishnan" <[EMAIL PROTECTED]> wrote on 03/17/2007 12:05:41 AM: > Hi, > > Thanks for the response. > > So is the wsdl2java tool restricted to processing only WSRF latest > specification and SOAP 1.2 ? I understand that Axis 2 supports SOAP 1.1 and > 1.2. Does the Muse layer introduce a restriction of SOAP 1.2 ? > > The effort here is to see if the Muse tools work with WSDLs compliant with > WS-I Basic Profile, that amongst other things requires doc/literal mode. > There should only be one message parts in this WSDL, but also the bindings > are SOAP 1.1 bindings. If you can go over it and figure out what aspect of > the WSDL is triggering this issue, it would be most useful. > > Thanks much, > Rachana > > > -----Original Message----- > > From: Andrew Eberbach [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 16, 2007 6:04 PM > > To: [email protected] > > Subject: Re: Wsdl2java tool > > > > Hi, > > > > I tried your WSDLs on Muse 2.2 and the null pointer exception > > was gone. > > However, as you guessed correctly, the messages don't conform > > to our expected inputs. I will work on creating your project > > using the WSDLs from our collection. However, my initial > > instinct is to think that there is simply a problem with the > > message references. The NotDocLiteral error that I'm getting > > happens if the number of message parts does not equal 1. > > Usually this ends up being it equals 0. I'll see what the > > problem is over the weekend and let you know Monday. > > > > Thanks, > > Andrew > > > > Andrew Eberbach > > Autonomic Computing > > (919) 254-2645 > > T/L: 444-2645 > > [EMAIL PROTECTED] > > > > > > > > Daniel Jemiolo/Durham/[EMAIL PROTECTED] > > 03/16/2007 06:50 PM > > Please respond to > > [email protected] > > > > > > To > > [email protected] > > cc > > > > Subject > > Re: Wsdl2java tool > > > > > > > > > > > > > > It would be worth the effort for us to go through and figure > > out the NPE, > > because that shouldn't happen regardless of what specs you're using; > > however, Muse only supports the ratified versions of WSRF, > > WSN, etc., so > > it won't generate code as documented unless you use those > > versions of the > > spec. All of the samples and tutorial WSDL/XSD files use > > these specs, so > > you can copy the correct XML from there. > > > > Dan > > > > > > > > "Rachana Ananthakrishnan" <[EMAIL PROTECTED]> wrote on 03/16/2007 > > 05:41:36 PM: > > > > > I am trying to use wsdl2java on some WS-I Basic Profile > > compliant WSDLs > > that > > > we have and end up with NPE. It does use older version of WSRF > > > specifications , SOAP 1.1 and doc/literal mode. Will that > > cause issues ? > > > > Any > > > ideas on what about the WSDL causes issues for the tool > > would be really > > > useful. > > > > > > Attached is all the WSDLs and the error I see is: > > > > > > C:\cygwin\home\ranantha\muse\CounterSrc>M:\bin\wsdl2java.bat > > > -axis2 -wsdl C:\cygwin\home\ranantha\muse\Wsdls\counterForMuse\coun > > > ter_service.wsdl -verbose > > > java.lang.RuntimeException: java.lang.NullPointerException > > > at > > > > > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect > > > or.java:836) > > > at > > > > > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl > > > eAnalyzer.java:392) > > > at > > > > > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl > > > eAnalyzer.java:338) > > > at > > org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143) > > > at > > > org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260) > > > Caused by: java.lang.NullPointerException > > > at > > com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown > > Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > > > at > > > > > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect > > > or.java:831) > > > ... 4 more > > > > > > SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see > > the exception > > > informa > > > tion below. > > > > > > An exception was caught: java.lang.NullPointerException > > > > > > The exception generated the following stacktrace: > > > > > > java.lang.RuntimeException: java.lang.NullPointerException > > > at > > > > > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect > > > or.java:836) > > > at > > > > > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl > > > eAnalyzer.java:392) > > > at > > > > > org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl > > > eAnalyzer.java:338) > > > at > > org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143) > > > at > > > org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260) > > > Caused by: java.lang.NullPointerException > > > at > > com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown > > Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > > > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > > > at > > > > > org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect > > > or.java:831) > > > ... 4 more > > > > > > > > > Thanks, > > > Rachana > > > [attachment "counterForMuse.tar.gz" deleted by Daniel > > Jemiolo/Durham/IBM] > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > > > > > --------------------------------------------------------------------- > > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
