I have an error that I can not figure out what it is. I got the SWDL from NfeAuthorization (homologation) and used Axis2 to generate the classes. I solved some import and lib problems, but there are still some problems.
Excerpt from the code where the error occurred:
org.apache.axiom.om.OMDataSource dataSource =new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
return factory.createOMElement(dataSource,MY_QNAME);
First line error:
Can not instantiate the type ADBDataSource.
Second line error:
The method createOMElement (QName, OMContainer) in the type OMFactory is not applicable for the arguments (OMDataSource, QName).
If I did the generation according to the WSDL, it should not have that kind of problem, right?