You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Charitha Kankanamge (JIRA)" <ji...@apache.org> on 2007/08/06 06:59:59 UTC
[jira] Created: (AXIS2-3075) java2wsdl generates an invalid wsdl
when the binding style is rpc
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3075) java2wsdl generates an invalid wsdl
when the binding style is rpc
Posted by "Pétur Runólfsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718556#action_12718556 ]
Pétur Runólfsson commented on AXIS2-3075:
-----------------------------------------
I am getting what appears to be the same error in 1.5, but the error message is different:
[ERROR] The binding operation getValue 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.
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: The binding operation getValue 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:2065)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplextType(WSDL11ToAxisServiceBuilder.java:1930)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1689)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1487)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:344)
at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:248)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:356)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:67)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:663)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
[INFO] Trouble processing wsdl file :The binding operation getValue 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.
> 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
> Attachments: 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.
[jira] Updated: (AXIS2-3075) java2wsdl generates an invalid wsdl
when the binding style is rpc
Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charitha Kankanamge updated AXIS2-3075:
---------------------------------------
Attachment: Mytest.wsdl
attached wsdl
> 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
> Attachments: 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org