Hi,
Anotherproblem 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.
/Tomas
----
<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