Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEStructuralFeature for the XSDSchema
https://www.eclipse.org/forums/index.php/mv/msg/18527/59379/#msg_59379
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:
Stas.]]>2005-04-21T16:48:04-00:00Re: EStructuralFeature for the XSDSchema
https://www.eclipse.org/forums/index.php/mv/msg/18527/59454/#msg_59454
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.
>]]>2005-04-22T11:42:31-00:00Re: EStructuralFeature for the XSDSchema
https://www.eclipse.org/forums/index.php/mv/msg/18527/594857/#msg_594857
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.
>]]>Ed Merks2005-04-22T11:42:31-00:00