Home » Language IDEs » ServerTools (WTP) » creating a top down web service with eclipse
|
Re: creating a top down web service with eclipse [message #204164 is a reply to message #204069] |
Sat, 10 November 2007 16:17 |
Lawrence Mandel Messages: 486 Registered: July 2009 |
Senior Member |
|
|
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.
|
|
|
Re: creating a top down web service with eclipse [message #204212 is a reply to message #204164] |
Mon, 12 November 2007 07:43 |
Massimo Tivoli Messages: 6 Registered: July 2009 |
Junior Member |
|
|
This is a multi-part message in MIME format.
--------------030509050508010306050100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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/tutori als/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@ca.ibm.com 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.
--------------030509050508010306050100
Content-Type: text/xml; x-mac-type="0"; x-mac-creator="0";
name="AreaService.wsdl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="AreaService.wsdl"
<?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>
--------------030509050508010306050100--
|
|
|
Re: creating a top down web service with eclipse [message #204243 is a reply to message #204164] |
Mon, 12 November 2007 12:25 |
Massimo Tivoli Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hi Lawrence,
just to let you know... I tried with Axis 1.4 (instead of Axis2 1.3 as
done in the previous days) and it works!
BTW, I still do not understand what is missing for Axis2 that is not for
Axis.
Cheers,
-Massimo.
lmandel@ca.ibm.com 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.
|
|
|
Re: creating a top down web service with eclipse [message #204283 is a reply to message #204243] |
Mon, 12 November 2007 22:24 |
Lawrence Mandel Messages: 486 Registered: July 2009 |
Senior Member |
|
|
Hi Massimo,
Without trying the tutorial I don't know the exact reason it fails with
Axis2 however Axis2 and Axis are completely different code bases (Axis2 is
a complete rewrite) so it doesn't surprise me that the instructions should
change in this case.
Lawrence
>Hi Lawrence,
>just to let you know... I tried with Axis 1.4 (instead of Axis2 1.3 as
>done in the previous days) and it works!
>BTW, I still do not understand what is missing for Axis2 that is not for
>Axis.
>
>Cheers,
>-Massimo.
>
>
>lmandel@ca.ibm.com 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.
|
|
|
Goto Forum:
Current Time: Tue Apr 23 15:43:52 GMT 2024
Powered by FUDForum. Page generated in 0.03290 seconds
|