ernie mcginty wrote:
Hello,
I've created two tuscany webservices that work
independently but I would like for the one to be able
to call some of the methods/operations of the other.
The examples I've seen show the wires fanning out from
a client such as the calculator or a jsp or a web
service component is wired to a java implementation
such as the currencyConvertor in the store example.
How can I get a reference to work btwn two web
services? In the eclipse tool, my @Reference section
resolves and I'm able to write the necessary code.
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
xmlns:c="http://battleship"
name="battleship">
<component name="wbl">
<t:implementation.resource location="web"/>
<service name="Resource">
<t:binding.http/>
</service>
</component>
<component name="DataObjects">
<implementation.java
class="battleship.DataObjectsImpl"/>
<service name="DataObjects">
<binding.ws uri="ws"/>
<t:binding.jsonrpc uri="json"/>
</service>
</component>
<component name="GamePlay">
<implementation.java
class="battleship.BattleshipGameImpl"/>
<service name="BattleshipGame">
<binding.ws uri="ws"/>
<t:binding.jsonrpc uri="json"/>
</service>
<reference name="dataObject" target="DataObjects"/>
</component>
</composite>
Thanks in advance.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello, Ernie. We have a few samples that show how to do this.
You can either define the reference and service using explicit WSDL
files, or you can let the Tuscany runtime generate these for you.
An example of the first style is helloworld-ws-reference, which talks
to a web service defined by helloworld-ws-service. The reference's
<binding.ws> specifies a pre-generated WSDL file.
An example of the second style is calculator-ws-webapp, in which
neither the reference definition nor the service definition uses a
pre-generated WSDL file.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]