Hi all
With the 0.95 version, how come I can use WSDL2Java to generate
*un-compilable* code?
Apparently, when I write WSDL as "Document/literal wrapped", the
generated "XXXReceiverInOut" has bad "toOM()", "fromOM()" and
"toEnvelope()" (for an example, see the below "toOM()"-implementation;
the parameter does not have the right type!).
Why does this happen? What to do?
Regards,
Morten Sabroe Mortensen
---
...
private org.apache.ws.commons.om.OMElement
toOM(org.apache.ws.commons.om.OMElement param){
if (param instanceof
org.apache.axis2.databinding.ADBBean){
org.apache.ws.commons.om.impl.builder.StAXOMBuilder builder = new
org.apache.ws.commons.om.impl.builder.StAXOMBuilder
(org.apache.ws.commons.om.OMAbstractFactory.getOMFactory(),
param.getPullParser(org.apache.ws.commons.om.OMElement.MY_QNAME));
org.apache.ws.commons.om.OMElement
documentElement = builder.getDocumentElement();
((org.apache.ws.commons.om.impl.OMNodeEx)
documentElement).setParent(null); // remove the parent link
return documentElement;
}else{
//todo finish this onece the bean serializer
has the necessary methods
return null;
}
}
...
---