When using wsdl with multiple namespaces, the code generator fails which the error :
After investigations, it seems to be linked to the BindingOrganizer Class which is generating an IncludeElement without BindingElement (which only occurs using code gen because when dealing with binding.xml, it is managed by prevalidate during xml loading (as far as I've seen)...
I've managed to fix it locally by adding the following constructor
/**
* Constructor used internally during CodeGen phase
*
* @param binding element
*/
public IncludeElement(BindingElement elt) {
super(INCLUDE_ELEMENT);
m_binding=elt;
}
add calling it around line 749 of file
IncludeElement include = new IncludeElement(holder.getBinding());
I hope it helps.
|