cannot generate the source code for rpc-literal style WSDL
----------------------------------------------------------

                 Key: AXIS2-3809
                 URL: https://issues.apache.org/jira/browse/AXIS2-3809
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.3, 1.4
         Environment: Windows XP , JDK1.5.0_14, 
Old Axis1.4
Axis2 v1.3
Axis2 v1.4
            Reporter: Vincent Dou
         Attachments: epm.wsdl

I used old Axis1.4  and Axis2 1.1 to generate the source code succesffuly. 
When I migrate them to Axis2 1.3 and 1.4, it fails to generate the source code 
by using WSDL2JAVA.

The error in Axis2 1.4 is listed below: 
=====================================================================================
wsdl2java -uri ./epm.wsdl  -o ./gen_src/epm -d adb

Using AXIS2_HOME:   C:\tools\axis2-1.4
Using JAVA_HOME:    c:\jdk1.5.0
Retrieving document at '../wsdl/epm.wsdl'.
[ERROR] The binding operation SessManager_logout_V2 is RPC/literal. The message
parts for this operation must use the type attribute as specificed by WS-I Basic
 Profile specification (4.4.1).  Message part, sessionHeader, violatesthis rule.
  Please remove the element attribute and use the type attribute.
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
 The binding operation SessManager_logout_V2 is RPC/literal. The message parts f
or this operation must use the type attribute as specificed by WS-I Basic Profil
e specification (4.4.1).  Message part, sessionHeader, violatesthis rule.  Pleas
e remove the element attribute and use the type attribute.
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElem
ent(WSDL11ToAxisServiceBuilder.java:2067)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplex
tType(WSDL11ToAxisServiceBuilder.java:1932)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaF
orPorttype(WSDL11ToAxisServiceBuilder.java:1597)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapp
erSchema(WSDL11ToAxisServiceBuilder.java:1481)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:345)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: The binding operation SessManager_logout_
V2 is RPC/literal. The message parts for this operation must use the type attrib
ute as specificed by WS-I Basic Profile specification (4.4.1).  Message part, se
ssionHeader, violatesthis rule.  Please remove the element attribute and use the
 type attribute.
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:397)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
        ... 2 more
Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
gException: The binding operation SessManager_logout_V2 is RPC/literal. The mess
age parts for this operation must use the type attribute as specificed by WS-I B
asic Profile specification (4.4.1).  Message part, sessionHeader, violatesthis r
ule.  Please remove the element attribute and use the type attribute.
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElem
ent(WSDL11ToAxisServiceBuilder.java:2067)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplex
tType(WSDL11ToAxisServiceBuilder.java:1932)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaF
orPorttype(WSDL11ToAxisServiceBuilder.java:1597)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapp
erSchema(WSDL11ToAxisServiceBuilder.java:1481)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:345)
        ... 4 more
=========================================================================
I attached the wsdl for your reference.

The Axis2 1.3 has simular error. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to