Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » EStructuralFeature for the XSDSchema
EStructuralFeature for the XSDSchema [message #59379] Thu, 21 April 2005 16:48 Go to next message
Eclipse UserFriend
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 11:42 Go to previous message
Eclipse UserFriend
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 11:42 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
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.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Problem when casting a XSDTerm to a XSDElementDeclaration !!
Next Topic:How to extract the text in adocumentation tag ?
Goto Forum:
  


Current Time: Wed Nov 06 03:19:44 GMT 2024

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

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

Back to the top