I raised a Jira item about obscure error messages :)

Anyway, the reason that it didn't work is that you need to specify a wsa:action 
for all input and outputs ... Including the one that you defined.

Steve

-----Original Message-----
From: Asaf Lahav [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 25, 2006 3:21 AM
To: [email protected]; [email protected]
Subject: problem with wsdl2java code generation?


I tried to generate code for the attached WSDL...


And got the following output:

C:\Downloads\Muse-2>C:\Downloads\muse-2.0.0-bin\muse-2.0.0-bin\bin\wsdl2java
.bat
 -wsdl CalculatorService.wsdl -verbose
Retrieving document at 'WS-BaseNotification-1_3.wsdl'.
Retrieving document at 'WS-Resource-1_2.wsdl', relative to 
'file:/C:/Downloads/M use-2/WS-BaseNotification-1_3.wsdl'.
Retrieving schema at 'WS-Resource-1_2.xsd', relative to 
'file:/C:/Downloads/Muse -2/WS-Resource-1_2.wsdl'.
Retrieving schema at 'WS-BaseFaults-1_2.xsd', relative to 
'file:/C:/Downloads/Mu se-2/WS-Resource-1_2.xsd'.
Retrieving schema at 'XML-Namespace-1998.xsd', relative to 
'file:/C:/Downloads/M use-2/WS-BaseFaults-1_2.xsd'.
Retrieving schema at 'WS-Addressing-2005_08.xsd', relative to 
'file:/C:/Download s/Muse-2/WS-BaseFaults-1_2.xsd'.
Retrieving document at 'WS-ResourceLifetime-1_2.wsdl', relative to 
'file:/C:/Dow nloads/Muse-2/WS-BaseNotification-1_3.wsdl'.
Retrieving document at 'WS-Resource-1_2.wsdl', relative to 
'file:/C:/Downloads/M use-2/WS-ResourceLifetime-1_2.wsdl'.
Retrieving schema at 'WS-Resource-1_2.xsd', relative to 
'file:/C:/Downloads/Muse -2/WS-Resource-1_2.wsdl'.
Retrieving schema at 'WS-ResourceLifetime-1_2.xsd', relative to 
'file:/C:/Downlo ads/Muse-2/WS-ResourceLifetime-1_2.wsdl'.
Retrieving schema at 'WS-BaseFaults-1_2.xsd', relative to 
'file:/C:/Downloads/Mu se-2/WS-ResourceLifetime-1_2.xsd'.
Retrieving document at 'WS-ResourceProperties-1_2.wsdl', relative to 
'file:/C:/D ownloads/Muse-2/WS-BaseNotification-1_3.wsdl'.
Retrieving document at 'WS-Resource-1_2.wsdl', relative to 
'file:/C:/Downloads/M use-2/WS-ResourceProperties-1_2.wsdl'.
Retrieving schema at 'WS-Resource-1_2.xsd', relative to 
'file:/C:/Downloads/Muse -2/WS-Resource-1_2.wsdl'.
Retrieving schema at 'WS-ResourceProperties-1_2.xsd', relative to 
'file:/C:/Down loads/Muse-2/WS-ResourceProperties-1_2.wsdl'.
Retrieving schema at 'WS-BaseFaults-1_2.xsd', relative to 
'file:/C:/Downloads/Mu se-2/WS-ResourceProperties-1_2.xsd'.
Retrieving schema at 'WS-BaseNotification-1_3.xsd', relative to 
'file:/C:/Downlo ads/Muse-2/WS-BaseNotification-1_3.wsdl'.
Retrieving schema at 'WS-BaseFaults-1_2.xsd', relative to 
'file:/C:/Downloads/Mu se-2/WS-BaseNotification-1_3.xsd'.
Retrieving schema at 'WS-ResourceLifetime-1_2.xsd', relative to 
'file:/C:/Downlo ads/Muse-2/WS-BaseNotification-1_3.xsd'.
Retrieving schema at 'WS-Topics-1_3.xsd', relative to
'file:/C:/Downloads/Muse-2
/WS-BaseNotification-1_3.xsd'.
Retrieving schema at 'WS-Addressing-2005_08.xsd', relative to 
'file:/C:/Download s/Muse-2/WS-BaseNotification-1_3.xsd'.
Retrieving schema at 'WS-ResourceProperties-1_2.xsd', relative to 
'file:/C:/Down loads/Muse-2/WS-BaseNotification-1_3.wsdl'.

SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception 
informa tion below.

An exception was caught: [ID = 'NullAction'] The wsa:Action URI is null.

The exception generated the following stacktrace:

java.lang.NullPointerException: [ID = 'NullAction'] The wsa:Action URI is null.
        at
org.apache.muse.core.proxy.AbstractProxyHandler.setAction(AbstractPro
xyHandler.java:129)
        at
org.apache.muse.tools.inspector.ResourceInspector.createReflectionHan
dler(ResourceInspector.java:401)
        at
org.apache.muse.tools.inspector.ResourceInspector.getHandlers(Resourc
eInspector.java:466)
        at
org.apache.muse.tools.inspector.ResourceInspector.getOperations(Resou
rceInspector.java:536)
        at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
or.java:849)
        at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl
eAnalyzer.java:367)
        at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl
eAnalyzer.java:313)
        at org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:142)
        at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:259)


The output is insufficient in order to resolve this issue... so, any help would 
be appreciated...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to