java2wsdl generates an invalid wsdl when the binding style is rpc
-----------------------------------------------------------------

                 Key: AXIS2-3075
                 URL: https://issues.apache.org/jira/browse/AXIS2-3075
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
         Environment: winxp, jdk15
            Reporter: Charitha Kankanamge
            Assignee: Deepal Jayasinghe


See the attached wsdl which was generated by java2wsdl.bat with specifying rpc 
binding. The generated wsdl is invalid and due to that it returns following 
exception when trying to generate skeleton.

If rpc binding style is no longer supported when generating wsdl using 
java2wsdl, please add it to the known issues list.

[ERROR] RPC-literal type message part parameters should have a type attribute
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
 RPC-literal type me
ssage part parameters should have a type attribute
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElement(WSDL11ToAxisServiceBuilder.java:1992)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplextType(WSDL11ToAxisServiceBuilder.java:1879)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1636)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1431)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:255)
        at 
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
        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

Steps to reproduce:
================
1. Generate wsdl using java2wsdl.bat
C:\Axis2\Axis2-1.3\RC3\axis2-1.3-RC3\bin>java2wsdl.bat -cn Mytestservice -of 
Mytest.wsdl -o . -st rpc




-- 
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