> -----Original Message-----
> From: Simon Laws [mailto:[email protected]]
> Sent: Wednesday, March 09, 2011 9:32 AM
> To: [email protected]
> Subject: Re: About using a DataObject as a webservice return type
> 
> 2011/3/6 lchang87 <[email protected]>:
> > Hi:
> > I am using the sca to build a online store project. In the project, I
> use
> > das and sdo. Now I run into some problems. 

[snip]

> org.apache.tuscany.sca.databinding.TransformationException:
> java.lang.RuntimeException:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package 
> with uri 'http:///org.apache.tuscany.das.rdb/das' not found.

[snip]

> Hi Chang
> 
> What version of Tuscany are you using? I assume 1.x.
> 
> There are a couple of SDO samples in 1.x, e.g. [1], but I can't find
> one that uses dynamic SDO and/or DAS. I though we had something in one
> of the bank samples but I can't find it. Anyone know of one for
> reference?
> 
> Looking at the stack dump it looks like the DAS creates the DataObject
> in a DAS specific namespace that's, probably not surprisingly,  not
> represented in the service interface.
> 
> What does you service interface look like?
> 
> [1] http://svn.apache.org/repos/asf/tuscany/sca-java-
> 1.x/trunk/samples/helloworld-ws-sdo/
> 
> Simon
> 

Two wild guesses (I am not familiar with Tuscany DAS):

1) There used to be a namespace issue with SDO's in webservice interfaces,
related to bug TUSCANY-3797, which Simon Nash resolved under revision r1038071. 
You might try to see and check if this fix is included in your Tuscany version.
(I haven't got around to retesting this myself.)

2) Furthermore, possibly you need to import the missing resource mentioned 
in the stack trace in a META-INF/sca-contribution.xml file
(<import.resource uri="foo.xsd"/>) and use import.sdo in 
your composite (<dbsdo:import.sdo location="foo.xsd"/>). 
I did have to do this for my own SDO's defined by a backing xsd-file in order 
to be able to  serialize them over a service boundary. Perhaps a similar thing 
applies
even if you do not have an xsd-file, but simply need to import the namespace.

-- Sebastian

Reply via email to