You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by RUBEN NARANJO IZQUIERDO <rn...@alumnos.upm.es> on 2005/12/27 18:26:50 UTC
[ Axis2 ] Problems with WSDL2Java
Hello,
I am using the tool WSDL2Java included in Axis2 v0.93 in order to generate
java code from a WSDL file. Initially it works fine, but I have the
following problems with the code generated:
· It only generates code for one out of the four PortTypes defined in my
WSDL, and I need the code for all of them.
· I get some compilation errors in the DatabindingSupporter classes of the
PortType generated that I don't know how to solve:
-------------
Line:
org.apache.axis2.om.impl.llom.builder.StAXOMBuilder builder = new
org.apache.axis2.om.impl.llom.builder.StAXOMBuilder(org.apache.axis2.om.OMA
bstractFactory.getOMFactory(), new
org.apache.axis2.util.StreamWrapper(param.newXMLStreamReader()));
Error:
The method newXMLStreamReader() is undefined for the type OMElement
-------------
Line:
return
org.apache.axis2.om.OMElement.Factory.parse(param.getXMLStreamReader()) ;
Error:
org.apache.axis2.om.OMElement.Factory cannot be resolved
-------------
Lines:
public static org.apache.xmlbeans.XmlObject
getTestObject(java.lang.Class type){
try{
if (org.apache.axis2.om.OMElement.class.equals(type)){
org.apache.axis2.om.OMElement emptyObject=
org.apache.axis2.om.OMElement.Factory.newInstance();
////////////////////////////////////////////////
// TODO
// Fill in the empty object with necessaey values. Empty
XMLBeans objects do not generate proper events
////////////////////////////////////////////////
return emptyObject;
}
Error:
Type mismatch: cannot convert from OMElement to XmlObject
-------------
This errors are repeated several times in diferent methods (toOM, fromOM,
getTestObject) from diferent DataBindingSupporters. Can somebody tell me
why I get this errors? Can they be solved? Thank you so much in advance.
Rubén Naranjo.