[
https://issues.apache.org/jira/browse/TUSCANY-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748583#action_12748583
]
Chad Phillips commented on TUSCANY-3238:
----------------------------------------
I changed the server/client code to print out the data as a DataType instead of
creating a concrete TestData on the server side (since it doesn't exist on the
client side).
Here is the data before it's returned to the client:
<DataType xmlns:ns2="conc" xmlns="abs">
<ns2:Identifier>FOO</ns2:Identifier>
</DataType>
And here is what the client receives:
<DataType xmlns="abs">
<IdentifierAbstract xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</DataType>
Since the types in the "conc" namespace aren't being generated from the WSDL,
there's no classes that I can add in a @XmlSeeAlso annotation. I'll throw this
back Raymond and the user group to see if they have any ideas as well.
> Use of WS binding results in exception when returning data
> ----------------------------------------------------------
>
> Key: TUSCANY-3238
> URL: https://issues.apache.org/jira/browse/TUSCANY-3238
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension, Java SCA Misc Binding
> Extensions
> Affects Versions: Java-SCA-1.5
> Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_18
> Apache Tuscany SCA Java 1.5 / 1.6 SNAPSHOT (r805992)
> JAX-WS RI 2.1.7
> Ant 1.7.0
> Reporter: Chad Phillips
> Attachments: ant_client.log, ant_server.log, src-gen.zip, test.zip,
> test.zip
>
>
> When the server in attached test program tries to return data to the client
> (request was made via a webservice), an exception is being thrown from the
> JAXB data binding (see the attached ant_server.log). I'm not sure what
> exactly is causing the issue but it may have to do with the use of
> substitution groups in the XSD used to generate the binding classes for the
> objects being returned. This is just speculation on my part as I have done
> similar things in the past, without using substitution groups, and I did not
> encounter this issue.
> Here is how the test program is being used:
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as
> necessary):
> cd <project directory>
> set JAXWS_HOME=C:\jaxws-ri-2.1.7
> set TUSCANY_HOME=C:\tuscany-sca-1.5
> ant clean server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as
> necessary):
> cd <project directory>
> set JAXWS_HOME=C:\jaxws-ri-2.1.7
> set TUSCANY_HOME=C:\tuscany-sca-1.5
> ant client
> The server and client outputs are attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.