Ted Stevens wrote:
<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>
Your earlier post has some JavaScript code that uses myService as the
name of the reference. This composite appears to use myservices as
the reference name.
If this isn't the cause of the problem, can you create a zip of your
complete application and post it here?
Simon
----- 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 ?