[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: help:cant get gallileo eclipse STP tuscany v1 or v2 m3 working

stephanie

nearly there i think. I did what you suggested,

i created some directory structure for my interface and the implementation code in a directory will/org/helloWorld below the eclipse src file.

put the exlpicit package statement at the top of the source files - like this for the interface

package will.org.helloWorld;

import org.osoa.sca.annotations.*;

@Remotable

public interface HelloWorld {

String helloWorld ();

}


i modified the .composite file as follows to put in the fully qualified path (i also set the targetNamespace to be the same for good measure

<sca:composite xmlns:sawsdl="http://www.w3.org/ns/sawsdl"; xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"; name="demoSCA" targetNamespace="http://will.org.helloWorld";>
<sca:component name="HelloWorldComponent">
<sca:implementation.java class="will.org.helloWorld.HelloWorldImpl"/>
<sca:service name="HelloWorld"/>
</sca:component>
<sca:service name="HelloWorld" promote="HelloWorldComponent/HelloWorld">
<sca:binding.ws uri="http://localhost:8080/HelloWorld"/>
<sca:binding.sca/>
</sca:service>
</sca:composite>


I then re ran the test and pointed the browser at the URI and whoopee as you suggested the wsdl is now aautomagically generated.

whats wierd is that the generated targetNamespace in the WSDL is the Reverse of my source path i.e. http://helloWorld.org.will

is that what it should do ?  i'd have expected it to come out like in the same order as the path.  Is this just another ideosyncratic tuscany v1.5 ' feature' or as expected?

generated WSDL

<?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions name="HelloWorldService" targetNamespace="http://helloWorld.org.will/"; xmlns:tns="http://helloWorld.org.will/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/";>
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://helloWorld.org.will/"; xmlns:xs="http://www.w3.org/2001/XMLSchema";>
- <xs:element name="helloWorld">
<xs:complexType /> </xs:element>
- <xs:element name="helloWorldResponse">
- <xs:complexType>
- <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string" /> </xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
- <wsdl:message name="helloWorld">
<wsdl:part name="helloWorld" element="tns:helloWorld" /> </wsdl:message>
- <wsdl:message name="helloWorldResponse">
<wsdl:part name="helloWorldResponse" element="tns:helloWorldResponse" /> </wsdl:message>
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="helloWorld">
<wsdl:input message="tns:helloWorld" /> <wsdl:output message="tns:helloWorldResponse" /> </wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="HelloWorldBinding" type="tns:HelloWorld">
<SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; /> - <wsdl:operation name="helloWorld">
<SOAP:operation /> - <wsdl:input>
<SOAP:body use="literal" /> </wsdl:input>
- <wsdl:output>
<SOAP:body use="literal" /> </wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="HelloWorldService">
- <wsdl:port name="HelloWorldPort" binding="tns:HelloWorldBinding">
<SOAP:address location="http://10.215.2.56:8080/HelloWorld"; /> </wsdl:port>
</wsdl:service>
</wsdl:definitions>


thanks one more time in advance