Raymond Feng wrote:
>>wsgen works with SEI (Service Endpoint Implementation). Here is an >>example I tried before:

>>https://svn.apache.org/repos/asf/tuscany/java/sca/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/MyServiceImpl.java

Thanks Raymond,
I see your example, and I understand how to wsgen an example like that. That example follows the JAXWS annotations of WebServices and WebMethods.

However, I am still not understanding the Tuscany helloworld-ws-service sample. I see this interface:
   @Remotable
   public interface HelloWorldService {
      public String getGreetings(String name);
   }
and I see this (partial) WSDL:
<wsdl:definitions targetNamespace="http://helloworld"; xmlns:tns="http://helloworld"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        name="helloworld">

    <wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://helloworld"; xmlns="http://www.w3.org/2001/XMLSchema";>
            <element name="getGreetings">
                <complexType>
                    <sequence>
                        <element name="name" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="getGreetingsResponse">
                <complexType>
                    <sequence>
<element name="getGreetingsReturn" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>

        </schema>
    </wsdl:types>
...


I am still puzzled. Was the WSDL generated from service interface using wsgen? In a broader sense, when accessing web services with Tuscany bindings, such as the above HelloWorld service sample, can someone explain how the helloworld.wsdl is used in the sample? Is the interface.wsdl line in the composite refering to the wsdl?

--
Thanks, Dan Becker

Reply via email to