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 Software Developer <sd...@yahoo.com> on 2011/03/29 12:47:01 UTC

JIBX Cannot unwrap element Error

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