| 
| EStructuralFeature for the XSDSchema [message #59379] | Thu, 21 April 2005 12:48  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: Stanislav.Spiridonov.borland.com 
 Can anybody say me the EStructuralFeature for the XSDSchema? I need to add
 XSD type defenitions to WSDL, like this:
 
 <wsdl:types>
 <xsd:schema targetNamespace="http://namespaces.snowboard-info.com"
 xmlns:xsd="http://www.w3.org/1999/XMLSchema">
 <xsd:element name="GetEndorsingBoarder">
 <xsd:complexType>
 <xsd:sequence>
 <xsd:element name="manufacturer" type="string"/>
 <xsd:element name="model" type="string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 </xsd:schema>
 </wsdl:types>
 
 So, I do
 
 TTypes types = WsdlFactory.eINSTANCE.createTTypes();
 XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();
 //Some code here
 EStructuralFeature feature = ...;
 types.getAny().add(feature, schema)
 
 What I may use instead "..."?
 
 Stas.
 |  |  |  | 
| 
| Re: EStructuralFeature for the XSDSchema [message #59454 is a reply to message #59379] | Fri, 22 April 2005 07:42  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: merks.ca.ibm.com 
 Stas,
 
 Did you generate a WSDL model from the WSDL schema and are you trying to
 use the hand written XSD model with that?  The XSD model does not have a
 document root class with a feature for the global schema element the way
 it would if it were actually generated from a schema for schema using
 the EMF 2.0 XML Schema to Ecore mapping.  It also isn't annotated with
 extended meta data so that it will simply serialize according to the XML
 Schema syntax when embedded inside another model.  I don't think you'll
 get this to work without significant/major effort.  One way to make
 something like this work is to generate an EMF model for both WSDL and
 XSD from their schemas.  A better way is to use the WSDL model in WTP
 which works well directly with the XSD model.
 
 
 Stanislav Spiridonov wrote:
 
 > Can anybody say me the EStructuralFeature for the XSDSchema? I need to
 > add XSD type defenitions to WSDL, like this:
 >
 >  <wsdl:types>
 >    <xsd:schema targetNamespace="http://namespaces.snowboard-info.com"
 > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
 >      <xsd:element name="GetEndorsingBoarder">
 >     <xsd:complexType>
 >       <xsd:sequence>
 >         <xsd:element name="manufacturer" type="string"/>
 >            <xsd:element name="model" type="string"/>
 >       </xsd:sequence>
 >     </xsd:complexType>
 >      </xsd:element>
 >    </xsd:schema>
 >  </wsdl:types>
 >
 > So, I do
 >
 > TTypes types = WsdlFactory.eINSTANCE.createTTypes();
 > XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();
 > //Some code here
 > EStructuralFeature feature = ...;
 > types.getAny().add(feature, schema)
 >
 > What I may use instead "..."?
 >
 > Stas.
 >
 |  |  |  | 
| 
| Re: EStructuralFeature for the XSDSchema [message #594857 is a reply to message #59379] | Fri, 22 April 2005 07:42  |  | 
| Eclipse User  |  |  |  |  | Stas, 
 Did you generate a WSDL model from the WSDL schema and are you trying to
 use the hand written XSD model with that?  The XSD model does not have a
 document root class with a feature for the global schema element the way
 it would if it were actually generated from a schema for schema using
 the EMF 2.0 XML Schema to Ecore mapping.  It also isn't annotated with
 extended meta data so that it will simply serialize according to the XML
 Schema syntax when embedded inside another model.  I don't think you'll
 get this to work without significant/major effort.  One way to make
 something like this work is to generate an EMF model for both WSDL and
 XSD from their schemas.  A better way is to use the WSDL model in WTP
 which works well directly with the XSD model.
 
 
 Stanislav Spiridonov wrote:
 
 > Can anybody say me the EStructuralFeature for the XSDSchema? I need to
 > add XSD type defenitions to WSDL, like this:
 >
 >  <wsdl:types>
 >    <xsd:schema targetNamespace="http://namespaces.snowboard-info.com"
 > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
 >      <xsd:element name="GetEndorsingBoarder">
 >     <xsd:complexType>
 >       <xsd:sequence>
 >         <xsd:element name="manufacturer" type="string"/>
 >            <xsd:element name="model" type="string"/>
 >       </xsd:sequence>
 >     </xsd:complexType>
 >      </xsd:element>
 >    </xsd:schema>
 >  </wsdl:types>
 >
 > So, I do
 >
 > TTypes types = WsdlFactory.eINSTANCE.createTTypes();
 > XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();
 > //Some code here
 > EStructuralFeature feature = ...;
 > types.getAny().add(feature, schema)
 >
 > What I may use instead "..."?
 >
 > Stas.
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05606 seconds