Your composite should look like :

<?xml version="1.0" encoding="UTF-8"?>
<sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; name="http"
targetNamespace="http://http";>
 <sca:component name="HTTPComposite">
  <tuscany:implementation.widget location="ui/ui.html"/>
  <sca:service name="Widget">
    <tuscany:binding.http uri="http://localhost:8080/MyService"/>
  </sca:service>
 </sca:component>
</sca:composite>

An then, pointing your browser to http://localhost:8080/MyService
would show your ui.html page.

On Tue, Feb 17, 2009 at 7:55 AM, Viatcheslav Kuravskiy
<[email protected]> wrote:
> Hello!
>
> I'm a newbie by Tuscany community. I'm trying to make reachable a simple
> html-page. Hier is my composite:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
> xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; name="http"
> targetNamespace="http://http";>
>  <sca:component name="HTTPComposite">
>   <tuscany:implementation.widget location="ui/ui.html"/>
>   <sca:service name="HTTPService">
>     <tuscany:binding.http uri="http://localhost:8080/MyService"/>
>   </sca:service>
>  </sca:component>
> </sca:composite>
>
>
> ui.html:
>
> <html>
> <head>
> <title>TEST</title>
> </head>
>
> <body>
> <h1>User Interface</h1>
> </body>
> </html>
>
>
> I start it, but I can open my page. Where is my mistake?
>
>
> Best regards,
> Viatcheslav Kuravskiy
>
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to