Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Generating Java Web Service code from WS-I BP 1.1-compliant WSDL
Generating Java Web Service code from WS-I BP 1.1-compliant WSDL [message #125750] Tue, 26 July 2005 07:09
Eclipse UserFriend
Originally posted by: christian.weyer.thinktecture.com

Hi everyone,

I am investigating into WTP's support for Axis Web Services. We are
developing an Eclipse add-in that uses our already existing WSDL Wizard
(written in .NET) to generate WSDL files without having to know and to
deal with all the nitty gritty details of WSDL 1.1:
http://www.thinktecture.com/WSCF/

So, I have used our plugin to create the WSDL and now want to right-click
on this WSDL to generate code. The dialog for the WSDL2Java options
appears and on clicking 'Finish' just *nothing* happens.
No code is generated and no error message?!

I am including the contents of the files below.

Any ideas?
Thanks!

Cheers,
Christian

-------
WSDL:
<!--WSDL generated by thinktecture WSCF; version 0.5.1.5206-->
<!--Tuesday, 26-07-2005 - 08:45 AM-->
<definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:tt-com:rs:v1"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:import0="urn:thinktecture-com:demos:restaurantservice:messages:v1 "
targetNamespace="urn:tt-com:rs:v1" name="RestaurantService"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema>
<xsd:import schemaLocation="RestaurantMessages.xsd"
namespace="urn:thinktecture-com:demos:restaurantservice:messages:v1 " />
</xsd:schema>
</types>
<message name="getRestaurantsIn">
<part name="messagePart" element="import0:GetRestaurantsRequest" />
</message>
<message name="getRestaurantsOut">
<part name="messagePart" element="import0:GetRestaurantsResponse" />
</message>
<message name="addRestaurantIn">
<part name="messagePart" element="import0:AddRestaurantMessage" />
</message>
<message name="rateRestaurantIn">
<part name="messagePart" element="import0:RateRestaurantMessage" />
</message>
<portType name="RestaurantServiceInterface">
<operation name="GetRestaurants">
<input message="tns:getRestaurantsIn" />
<output message="tns:getRestaurantsOut" />
</operation>
<operation name="AddRestaurant">
<input message="tns:addRestaurantIn" />
</operation>
<operation name="RateRestaurant">
<input message="tns:rateRestaurantIn" />
</operation>
</portType>
<binding name="RestaurantService" type="tns:RestaurantServiceInterface">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="GetRestaurants">
<soap:operation soapAction="urn:tt-com:rs:v1:getRestaurantsIn"
style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="AddRestaurant">
<soap:operation soapAction="urn:tt-com:rs:v1:addRestaurantIn"
style="document" />
<input>
<soap:body use="literal" />
</input>
</operation>
<operation name="RateRestaurant">
<soap:operation soapAction="urn:tt-com:rs:v1:rateRestaurantIn"
style="document" />
<input>
<soap:body use="literal" />
</input>
</operation>
</binding>
<service name="RestaurantServicePort">
<port name="RestaurantServicePort" binding="tns:RestaurantService">
<soap:address location="http://localhost/RS/" />
</port>
</service>
</definitions>

XSD1:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="RestaurantMessages"
targetNamespace="urn:thinktecture-com:demos:restaurantservice:messages:v1 "
elementFormDefault="qualified"
xmlns="urn:thinktecture-com:demos:restaurantservice:messages:v1 "
xmlns:mstns="urn:thinktecture-com:demos:restaurantservice:messages:v1 "
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:import="urn:thinktecture-com:demos:restaurantservice:data:v1 ">
<xs:import id="RestaurantData" schemaLocation="RestaurantData.xsd"
namespace="urn:thinktecture-com:demos:restaurantservice:data:v1 "></xs:import>
<xs:element name="GetRestaurantsRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="Zip" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetRestaurantsResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="Restaurants" type="import:restaurantsList" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AddRestaurantMessage">
<xs:complexType>
<xs:sequence>
<xs:element name="Restaurant" type="import:restaurantInfo" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RateRestaurantMessage">
<xs:complexType>
<xs:sequence>
<xs:element name="RestaurantID" type="xs:int" />
<xs:element name="Rate" type="import:ratingInfo" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

XSD2:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="RestaurantData"
targetNamespace="urn:thinktecture-com:demos:restaurantservice:data:v1 "
elementFormDefault="qualified"
xmlns="urn:thinktecture-com:demos:restaurantservice:data:v1 "
xmlns:mstns="urn:thinktecture-com:demos:restaurantservice:data:v1 "
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="restaurantInfo">
<xs:sequence>
<xs:element name="RestaurantID" type="xs:int" />
<xs:element name="Name" type="xs:string" />
<xs:element name="Address" type="xs:string" />
<xs:element name="City" type="xs:string" />
<xs:element name="State" type="xs:string" />
<xs:element name="Zip" type="xs:string" />
<xs:element name="OpenFrom" type="xs:time" />
<xs:element name="OpenTo" type="xs:time" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="restaurantsList">
<xs:sequence>
<xs:element name="restaurant" type="restaurantInfo"
maxOccurs="unbounded" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ratingInfo">
<xs:restriction base="xs:string">
<xs:enumeration value="Poor" />
<xs:enumeration value="Good" />
<xs:enumeration value="VeryGood" />
<xs:enumeration value="Excellent" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
-------
Previous Topic:WTP 0.7 Endgame Plan
Next Topic:Lost in the doc?
Goto Forum:
  


Current Time: Sun Sep 01 05:13:14 GMT 2024

Powered by FUDForum. Page generated in 0.03670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top