Axis2 JIBX Cannot unwrap element Error

Joined
Mar 29, 2011
Messages
2
Reaction score
0
I am unable to create JIBX Client of a web service. Whereas I am able to create ADB client of the same web service. I get following exception when attempting to create JIBX client:

------------------------------------------------------------------------------------------------------------------


C:\axis2-1.5.4\bin>wsdl2java -uri http://localhost/PSIGW/PeopleSoftServiceLis
teningConnector/SAD_ADMISSIONS.1.wsdl -d jibx -s -uw
Using AXIS2_HOME: C:\axis2-1.5.4
Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_22
Retrieving document at 'http://localhost/PSIGW/PeopleSoftServiceListeningConn
ector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_CREATEAPPL_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_CREATEAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_CREATEAPPL_RESP.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_CREATEAPPL_RESP.V1.xsd'.
Retrieving schema at 'SAD_FAULT_RESP.V1.xsd', relative to 'http://localhost/P
SIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPL_REQ.V1.xsd', relative to 'http://localhost/
PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPL_RESP.V1.xsd', relative to 'http://localhost
/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPL_RESP.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPL_RESP.V1.xsd'.
Retrieving schema at 'SAD_GETAPPLS_REQ.V1.xsd', relative to 'http://localhost
/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPLS_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPLS_RESP.V1.xsd'.
Retrieving schema at 'SAD_GETATTACH_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETATTACH_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_ADM_APPL_ATCH.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETATTACH_RESP.V1.xsd'.
Retrieving schema at 'SAD_SAVEAPPL_REQ.V1.xsd', relative to 'http://localhost
/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SAVEAPPL_REQ.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SAVEAPPL_REQ.V1.xsd'.
Retrieving schema at 'SAD_SAVEAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_SUBMITAPPL_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SUBMITAPPL_REQ.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SUBMITAPPL_REQ.V1.xsd'.
Retrieving schema at 'SAD_SUBMITAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: Cannot unwrap element {http://xmlns.oracle.com/Ent
erprise/HCM/services}SAD_GETAPPL_REQ: all elements in contained sequence must be
element references or reference a named type
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: Cannot unwrap element {http://xmlns.oracl
e.com/Enterprise/HCM/services}SAD_GETAPPL_REQ: all elements in contained sequenc
e must be element references or reference a named type
at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerat
ionUtility.java:753)
at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtil
ity.java:387)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExte
nsion.java:77)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
... 2 more
C:\axis2-1.5.4\bin>

------------------------------------------------------------------------------------------------------------------

Kindly suggest how can I resolve this issue.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top