The WSDL service builder does not handle ref attribute in elements, throws
Invalid name [null] when name attribute is not present
---------------------------------------------------------------------------------------------------------------------------------
Key: XFIRE-408
URL: http://jira.codehaus.org/browse/XFIRE-408
Project: XFire
Type: Bug
Components: Core
Versions: 1.1
Reporter: Tomas Olsson
Assigned to: Dan Diephouse
The problem is that neither WSDL to java generation or dynamic client
seems to support WSDL element such as below where the element uses a ref
defined somewhere else. An exception is generated as seen below. If I add
a name attribute to the element then it appear to work, but according to
my WSDL validator this is not allowed.
----
<s:element name="configureResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" ref="s1:configured"/>
</s:sequence>
</s:complexType>
</s:element>
In namespace s1:
<s:element name="configured" type="s:boolean"/>
-----
Caused by: java.lang.IllegalArgumentException: Invalid name [null]
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
... 19 more
Caused by: java.lang.IllegalArgumentException: Invalid name [null]
at
org.codehaus.xfire.service.MessagePartContainer.addMessagePart(MessagePartContainer.java:55)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.createMessagePart(WSDLServiceBuilder.java:429)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.createMessageParts(WSDLServiceBuilder.java:420)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:598)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:359)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:172)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:69)
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)
... 23 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira