[
https://issues.apache.org/jira/browse/TUSCANY-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Nash updated TUSCANY-1658:
--------------------------------
Attachment: ExampleService.java
ws-void-args-return.zip
patch1658
Please apply the attached patch by doing the following:
1. Add the new file
modules\java2wsdl\src\test\java\org\apache\tuscany\tools\java2wsdl\generate\ExampleService.java
2. Apply the changes in patch1658
3. Unzip ws-void-args-return under the itest directory
4. Update the pom for itest to include ws-void-args-return
This patch fixes TUSCANY-1658 and TUSCANY-1653, and add an itest to verify the
fix. It also includes a corresponding change in java2wsdl to handle the
two-way void return case correctly.
> Dynamically generated WSDL does not generate wsdl:output if method has void
> return
> ----------------------------------------------------------------------------------
>
> Key: TUSCANY-1658
> URL: https://issues.apache.org/jira/browse/TUSCANY-1658
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Windows XP
> Reporter: Simon Nash
> Assignee: Simon Nash
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: ExampleService.java, patch1658, ws-void-args-return.zip
>
>
> I modified the simple-callback-ws sample to use dynamically generated WSDL.
> For methods with void return types, the generated WSDL has no wsdl:output
> element inside the wsdl:operation element. This causes the following runtime
> error:
> Caused by: org.apache.axis2.AxisFault: An unknown message label has been
> encountered: In
> at
> org.apache.axis2.description.OutOnlyAxisOperationClient.getMessageContext(OutOnlyAxisOperation.java:211)
> at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:90)
> at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:68)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:320)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:117)
> ... 34 more
> This is a similar problem to TUSCANY-1653.
--
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]