If I run the test case alone without others in the same class, then it passes. I think there is some interference from other test cases. Especially, the Source, Image are both map to the same XSD type.

We need to dig out what's conflicting.

Thanks,
Raymond
--------------------------------------------------
From: "Vamsavardhana Reddy" <[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2008 6:01 AM
To: <tuscany-dev@ws.apache.org>
Subject: Databinding test for javax.xml.transform.Source problem

I have updated the tests to get the content out of Source objects and
compare the contents. I have the following StreamSource as input:

new StreamSource(new StringReader("<a>A</a>")).

The content I am from this source is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<a>A</a>

I have a service method that returns a copy of the source that is passed to
it.  The source that is returned when the service method is invoked over
binding.ws is giveing the following content:
<?xml version="1.0" encoding="UTF-8"?>
<return xmlns="http://jaxb.databindings.itest.sca.tuscany.apache.org/
">A</return>

Notice the namespace and the change in the root tag.  Any suggestions on
changing the test?

Reply via email to