Codegen Help requested

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Codegen Help requested

Michael Tyler - ISD

Folks,

 

I am getting the following exception with the included WSDL’s and XSD’s.  I am at a lost as Eclipse is validating them ok, and other tools are generating Java code correctly from these files, though I am trying to generate C.

 

I am running on a HP11.23 with Java6 the jars from Axis2/Java V1.6.1

 

I am on a tight project timeline so any help would greatly be appreciated.

 

 

Command being run:

/wsdl2c.sh  -uri dataLoadTool_Implementation_HO_V1_0.wsdl -u –ss

 

Output:

the classpath :/u/developers/lmtyler/wsdl2c/jar/XmlSchema-1.4.7.jar:/u/developers/lmtyler/wsdl2c/jar/activation-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/antlr-2.7.7.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-api-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-dom-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-impl-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-adb-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-adb-codegen-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-ant-plugin-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-clustering-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-codegen-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-corba-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-fastinfoset-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-java2wsdl-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jaxbri-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jaxws-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jibx-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-json-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-kernel-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-metadata-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-mtompolicy-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-saaj-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-soapmonitor-servlet-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-spring-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-transport-http-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-transport-local-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-xmlbeans-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/bcel-5.1.jar:/u/developers/lmtyler/wsdl2c/jar/commons-cli-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/commons-codec-1.3.jar:/u/developers/lmtyler/wsdl2c/jar/commons-fileupload-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/commons-httpclient-3.1.jar:/u/developers/lmtyler/wsdl2c/jar/commons-io-1.4.jar:/u/developers/lmtyler/wsdl2c/jar/commons-logging-1.1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-annotation_1.0_spec-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-jaxws_2.2_spec-1.0.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-jta_1.1_spec-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-saaj_1.3_spec-1.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-stax-api_1.0_spec-1.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-ws-metadata_2.0_spec-1.1.2.jar:/u/developers/lmtyler/wsdl2c/jar/httpcore-4.0.jar:/u/developers/lmtyler/wsdl2c/jar/jalopy-1.5rc3.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-api-2.1.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-impl-2.1.7.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-xjc-2.1.7.jar:/u/developers/lmtyler/wsdl2c/jar/jaxen-1.1.1.jar:/u/developers/lmtyler/wsdl2c/jar/jaxws-tools-2.1.3.jar:/u/developers/lmtyler/wsdl2c/jar/jettison-1.0-RC2.jar:/u/developers/lmtyler/wsdl2c/jar/jibx-bind-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/jibx-run-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/jsr311-api-1.0.jar:/u/developers/lmtyler/wsdl2c/jar/juli-6.0.16.jar:/u/developers/lmtyler/wsdl2c/jar/log4j-1.2.15.jar:/u/developers/lmtyler/wsdl2c/jar/mail-1.4.jar:/u/developers/lmtyler/wsdl2c/jar/mex-1.6.1-impl.jar:/u/developers/lmtyler/wsdl2c/jar/neethi-3.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/regexp-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/tribes-6.0.16.jar:/u/developers/lmtyler/wsdl2c/jar/woden-api-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/woden-impl-commons-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/woden-impl-dom-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/wsdl4j-1.6.2.jar:/u/developers/lmtyler/wsdl2c/jar/wstx-asl-3.2.9.jar:/u/developers/lmtyler/wsdl2c/jar/xalan-2.7.0.jar:/u/developers/lmtyler/wsdl2c/jar/xml-resolver-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/xmlbeans-2.3.0.jar

Retrieving document at 'dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving document at 'dataLoadTool_Interface_HO_V1_0.wsdl', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolBusinessData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Interface_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolCoreData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadToolBusinessData.xsd'.

Retrieving document at 'dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving document at 'dataLoadTool_Interface_HO_V1_0.wsdl', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolBusinessData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Interface_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolCoreData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadToolBusinessData.xsd'.

log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).

log4j:WARN Please initialize the log4j system properly.

java.lang.RuntimeException: Element QName is null for getListOfTablesFault!

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.getFaultParamElements(CEmitter.java:991)

        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2844)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.loadOperations(CEmitter.java:588)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.createDOMDocumentForSkeleton(CEmitter.java:408)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.writeCSkel(CEmitter.java:208)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.emitSkeleton(CEmitter.java:129)

        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:275)

        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

        at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)

 

Please see the included files.

 

 

L. Michael Tyler, II

System Analyst - ISD Aps Dev Store Systems Services

Phone 479.277.2811

BlackBerry 479.420.3798

[hidden email]

[hidden email]

 

This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

dataLoadTool_Implementation_HO_V1_0.wsdl (1K) Download Attachment
dataLoadTool_Interface_HO_V1_0.wsdl (3K) Download Attachment
dataLoadToolBusinessData.xsd (14K) Download Attachment
dataLoadToolCoreData.xsd (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Codegen Help requested

Michael Tyler - ISD

Ok, so problem solved.  Here was my issue.

 

Within Eclipse I was regenerating the bindings but was not clicking override the existing binds.  This was getting me the response and request, but not inserting the fault.  Once I told it to override the existing bindings I got the code generation to complete.

 

 

L. Michael Tyler, II

System Analyst - ISD Aps Dev Store Systems Services

Phone 479.277.2811

BlackBerry 479.420.3798

[hidden email]

[hidden email]

 

From: Michael Tyler - ISD
Sent: Monday, January 07, 2013 9:54 AM
To: [hidden email]; '[hidden email]'
Subject: Codegen Help requested

 

Folks,

 

I am getting the following exception with the included WSDL’s and XSD’s.  I am at a lost as Eclipse is validating them ok, and other tools are generating Java code correctly from these files, though I am trying to generate C.

 

I am running on a HP11.23 with Java6 the jars from Axis2/Java V1.6.1

 

I am on a tight project timeline so any help would greatly be appreciated.

 

 

Command being run:

/wsdl2c.sh  -uri dataLoadTool_Implementation_HO_V1_0.wsdl -u –ss

 

Output:

the classpath :/u/developers/lmtyler/wsdl2c/jar/XmlSchema-1.4.7.jar:/u/developers/lmtyler/wsdl2c/jar/activation-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/antlr-2.7.7.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-api-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-dom-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axiom-impl-1.2.12.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-adb-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-adb-codegen-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-ant-plugin-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-clustering-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-codegen-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-corba-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-fastinfoset-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-java2wsdl-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jaxbri-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jaxws-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-jibx-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-json-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-kernel-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-metadata-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-mtompolicy-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-saaj-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-soapmonitor-servlet-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-spring-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-transport-http-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-transport-local-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/axis2-xmlbeans-1.6.1.jar:/u/developers/lmtyler/wsdl2c/jar/bcel-5.1.jar:/u/developers/lmtyler/wsdl2c/jar/commons-cli-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/commons-codec-1.3.jar:/u/developers/lmtyler/wsdl2c/jar/commons-fileupload-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/commons-httpclient-3.1.jar:/u/developers/lmtyler/wsdl2c/jar/commons-io-1.4.jar:/u/developers/lmtyler/wsdl2c/jar/commons-logging-1.1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-annotation_1.0_spec-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-jaxws_2.2_spec-1.0.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-jta_1.1_spec-1.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-saaj_1.3_spec-1.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-stax-api_1.0_spec-1.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/geronimo-ws-metadata_2.0_spec-1.1.2.jar:/u/developers/lmtyler/wsdl2c/jar/httpcore-4.0.jar:/u/developers/lmtyler/wsdl2c/jar/jalopy-1.5rc3.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-api-2.1.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-impl-2.1.7.jar:/u/developers/lmtyler/wsdl2c/jar/jaxb-xjc-2.1.7.jar:/u/developers/lmtyler/wsdl2c/jar/jaxen-1.1.1.jar:/u/developers/lmtyler/wsdl2c/jar/jaxws-tools-2.1.3.jar:/u/developers/lmtyler/wsdl2c/jar/jettison-1.0-RC2.jar:/u/developers/lmtyler/wsdl2c/jar/jibx-bind-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/jibx-run-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/jsr311-api-1.0.jar:/u/developers/lmtyler/wsdl2c/jar/juli-6.0.16.jar:/u/developers/lmtyler/wsdl2c/jar/log4j-1.2.15.jar:/u/developers/lmtyler/wsdl2c/jar/mail-1.4.jar:/u/developers/lmtyler/wsdl2c/jar/mex-1.6.1-impl.jar:/u/developers/lmtyler/wsdl2c/jar/neethi-3.0.1.jar:/u/developers/lmtyler/wsdl2c/jar/regexp-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/tribes-6.0.16.jar:/u/developers/lmtyler/wsdl2c/jar/woden-api-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/woden-impl-commons-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/woden-impl-dom-1.0M9.jar:/u/developers/lmtyler/wsdl2c/jar/wsdl4j-1.6.2.jar:/u/developers/lmtyler/wsdl2c/jar/wstx-asl-3.2.9.jar:/u/developers/lmtyler/wsdl2c/jar/xalan-2.7.0.jar:/u/developers/lmtyler/wsdl2c/jar/xml-resolver-1.2.jar:/u/developers/lmtyler/wsdl2c/jar/xmlbeans-2.3.0.jar

Retrieving document at 'dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving document at 'dataLoadTool_Interface_HO_V1_0.wsdl', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolBusinessData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Interface_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolCoreData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadToolBusinessData.xsd'.

Retrieving document at 'dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving document at 'dataLoadTool_Interface_HO_V1_0.wsdl', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Implementation_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolBusinessData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadTool_Interface_HO_V1_0.wsdl'.

Retrieving schema at 'dataLoadToolCoreData.xsd', relative to 'file:/u/developers/lmtyler/svn/dataLoadTool/HOServices/trunk/dataLoadToolBusinessData.xsd'.

log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).

log4j:WARN Please initialize the log4j system properly.

java.lang.RuntimeException: Element QName is null for getListOfTablesFault!

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.getFaultParamElements(CEmitter.java:991)

        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2844)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.loadOperations(CEmitter.java:588)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.createDOMDocumentForSkeleton(CEmitter.java:408)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.writeCSkel(CEmitter.java:208)

        at org.apache.axis2.wsdl.codegen.emitter.CEmitter.emitSkeleton(CEmitter.java:129)

        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:275)

        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

        at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)

 

Please see the included files.

 

 

L. Michael Tyler, II

System Analyst - ISD Aps Dev Store Systems Services

Phone 479.277.2811

BlackBerry 479.420.3798

[hidden email]

[hidden email]

 

This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***