Hi All,
 
I'm newbie to Axis2.
 
I'd like to create Java stub code from wsdl with Axis2 1.3
wsdl2java.sh,
however, I've got Exception (the details is below).

With Axis2 1.2 wsdl2java.sh, I've got OutOfMemoryError.

Both 1.3 and 1.2 ends with the same schema
'VZLProtocol.xsd'.

This schema is not supported by Axis2?

If possible, could you tell me a workaround for this
problem?


Regards,

Masaki UNO



*** Details ***

My Environment:
  Debian 4.0
  JDK 6u4
  Axis2 1.3
  wsdl uri:
http://www.swsoft.com/webservices/vza/4.0.0/VZA.wsdl


I executed below:

  wsdl2java.sh -uri
http://www.swsoft.com/webservices/vza/4.0.0/VZA.wsdl


I got Exception as below:


   Retrieving document at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZL.wsdl',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/'.
   Retrieving document at 'VZLalertm.wsdl', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZL.wsdl'.
   Retrieving schema at 'VZLAlertm.xsd', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLalertm.wsdl'.
   Retrieving schema at 'VZLCommonTypes.xsd', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLAlertm.xsd'.
   ...
   <snipped>
   ...
   Retrieving schema at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLCommonTypes.xsd',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/VZASupport.xsd'.
   Retrieving schema at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLProtocol.xsd',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/VZASupport.xsd'.
   Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
Error parsing WSDL
           at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
           at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
           at org.apache.axis2.wsdl.WSDL2Java.   Caused
by: org.apache.axis2.AxisFault: No service was not found
in the WSDL at
http://www.swsoft.com/webservices/vza/4.0.0/ with
targetnamespace
http://www.swsoft.com/webservices/vza/4.0.0
           at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:117)
           at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
           ... 2 more



When I do above with wsdl2java.sh of Axis2 1.2,
I got OutOfMemoryError as below (specified option -Xmx
512M).


   Retrieving document at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZL.wsdl',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/'.
   Retrieving document at 'VZLalertm.wsdl', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZL.wsdl'.
   Retrieving schema at 'VZLAlertm.xsd', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLalertm.wsdl'.
   Retrieving schema at 'VZLCommonTypes.xsd', relative to
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLAlertm.xsd'.
   ...
   <snipped>
   ...
   Retrieving schema at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLCommonTypes.xsd',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/VZASupport.xsd'.
   Retrieving schema at
'http://www.swsoft.com/webservices/vzl/4.0.0/VZLProtocol.xsd',
relative to
'http://www.swsoft.com/webservices/vza/4.0.0/VZASupport.xsd'.
   Exception in thread "main" java.lang.OutOfMemoryError:
Java heap space
           at
org.apache.xerces.dom.DeferredDocumentImpl.createChunk(Unknown
Source)
           at
org.apache.xerces.dom.DeferredDocumentImpl.ensureCapacity(Unknown
Source)
           at
org.apache.xerces.dom.DeferredDocumentImpl.createNode(Unknown
Source)
           at
org.apache.xerces.dom.DeferredDocumentImpl.createDeferredDocument(Unknown
Source)
           at
org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown
Source)
           at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown
Source)
           at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)
           at
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)
           at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
           at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
           at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           at
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
           at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
           at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:299)
           at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1838)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1574)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:170)
           at
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:79)
           at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:353)
           at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:300)
           at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1838)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1574)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:170)
           at
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:79)
           at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:353)
           at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:300)
           at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1838)
           at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1856)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
           at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:170)
main(WSDL2Java.java:24)
           at
org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:137)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to