<composite
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
xmlns:s="http://MyServices"
targetNamespace="http://MyServices"
name="MyServices">
<component name = "MyServices">
<t:implementation.widget location="uiservices/MyServices.html"/>
<service name = "Widget">
<t:binding.http uri="http://localhost:8080/MyServices"/>
</service>
<reference name = "myservices" target = "MyClient">
<t:binding.jsonrpc/>
</reference>
</component>
<component name = "MyClient">
<implementation.java class = "joe.myClientImpl"/>
<service name = "MyClient">
<t:binding.jsonrpc uri = "http://localhost:8080/MyClient"/>
</service>
</component>
</composite>
----- Original Message -----
From: "Luciano Resende" <[email protected]>
To: <[email protected]>
Sent: Tuesday, November 23, 2010 8:20 PM
Subject: Re: Newbie config stuff...
On Tue, Nov 23, 2010 at 8:02 PM, Ted Stevens <[email protected]>
wrote:
Not sure if this is the right place to post but here goes:
I've got a project and directory structure similar to the 'store'
example -
I've got just 1 client service class.. should be pretty simple. Problem is
the javascript is unable to resolve the tuscany package in the html page,
ie...
myJavaClass myObject = new tuscany.sca.Reference(myService); produces a
javascript error
In order to tuscany.sca.Reference to work, you need to have a
component defined using implementation.widget. Do you have that ?
Could you please post your composite here ?
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/