[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: creating a top down web service with eclipse

Hi Lawrence,
first of all thank you for your reply and your clarification about the plug-in versions... sorry for that but I am
quite new of this stuff. Basing on what you say, I don't really know the exact version but it is the one obtained
by performing the automatic update feature provided with Eclipse Europa, thus I think it is one of the latest ones
(maybe the 2.0 as you say).


About the binding, I am just following the tutorial at the URL:

http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/TopDownWebService/TopDownWebService.html

and, hence, I am using the provided wsdl sample called "AreaService.wsdl". I am also new about wsdl... as far as
I know, it seems to me that a SOAP binding is defined. I am attaching this wsdl file, just in case you want to
have a look at it. I don't have any existing class. If I understood well, I just need the wsdl file to perform the
tutorial steps until code generation. Is it right?


Are you able to perform the steps in that tutorial using that wsdl file?

Thank you very much for your support,
cheers,
-Massimo.



lmandel@xxxxxxxxxx wrote:
Hi Massimo,

Are you using WTP 2.0? WTP v1.1.1 is not a valid release number. (Note that plug-in version numbers no longer correspond to WTP version numbers.)

WRT to your error, I'm just taking a stab in the dark based on the stack and a quick Google search, do you have an interface defined with no corresponding binding? Do you have existing classes defined that cannot be overridden by the service generator?

Lawrence

Hi,

as for some of you, I am trying to create a first web service from a ..wsdl definition.
I am following "the top down web services" tutorial.
At generation time, the wizard give me the error reported below. I am using Apache Tomcat v6.0,
Axis2 v1.3, Eclispe Europa v3.3.1, WTP v1.1.1, and Java 5. Do you have experienced a similar problem
before? Some suggestion to solve it?


Thank all in advance,
-Massimo.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://tempuri.org/AreaService/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="AreaService" targetNamespace="http://tempuri.org/AreaService/";>
  <wsdl:types>
    <xsd:schema targetNamespace="http://tempuri.org/AreaService/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
      <xsd:element name="area" type="xsd:float"/>
      <xsd:element name="parameters" type="tns:dimensions"/>
      <xsd:complexType name="dimensions">
      	<xsd:sequence>
      		<xsd:element name="width" type="xsd:float"></xsd:element>
      		<xsd:element name="height" type="xsd:float"></xsd:element>
      	</xsd:sequence>
      </xsd:complexType>

    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="CalculateRectAreaResponse">
    <wsdl:part element="tns:area" name="area"/>
  </wsdl:message>
  <wsdl:message name="CalculateRectAreaRequest">
    <wsdl:part element="tns:parameters" name="parameters"/>
  </wsdl:message>
  <wsdl:portType name="AreaService">
    <wsdl:operation name="CalculateRectArea">
      <wsdl:input message="tns:CalculateRectAreaRequest"/>
      <wsdl:output message="tns:CalculateRectAreaResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="AreaServiceSOAP" type="tns:AreaService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CalculateRectArea">
      <soap:operation soapAction="http://tempuri.org/AreaService/NewOperation"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AreaService">
    <wsdl:port binding="tns:AreaServiceSOAP" name="AreaServiceSOAP">
      <soap:address location="http://tempuri.org"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>