You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Viatcheslav Kuravskiy <Vi...@stud.uni-karlsruhe.de> on 2009/02/17 16:55:56 UTC

implementation.widget & binding.http

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


Re: implementation.widget & binding.http

Posted by Luciano Resende <lu...@gmail.com>.
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
<Vi...@stud.uni-karlsruhe.de> 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/