axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charitha Kankanamge (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3075) java2wsdl generates an invalid wsdl when the binding style is rpc
Date Tue, 21 Dec 2010 09:40:08 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973528#action_12973528
] 

Charitha Kankanamge commented on AXIS2-3075:
--------------------------------------------

I tried with a build taken from trunk and get the same issue as Pétur Runólfsson mentioned.


Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:158)
	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 multiplication 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, parameters, 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.populateService(WSDL11ToAxisServiceBuilder.java:403)
	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:152)
	... 2 more
Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
The binding operation multiplication 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, parameters, violatesthis rule.  Please remove the element attribute and use the type
attribute.
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElement(WSDL11ToAxisServiceBuilder.java:2187)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplextType(WSDL11ToAxisServiceBuilder.java:2045)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1695)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1583)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
	... 4 more

Attached the artifacts to reproduce the issue.

1. org.test.Myservice2.class which can be used to generate wsdl using java2wsdl

sh java2wsdl.sh -cn org.test.Myservice2 -of Myservice.wsdl -st rpc -o .

2. The generated wsdl from the above command

/Charitha





> java2wsdl generates an invalid wsdl when the binding style is rpc
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3075
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3075
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>         Attachments: Myservice.wsdl, Myservice2.class, Mytest.wsdl
>
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message