[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [emf-dev] Several Schemas in WSDL file
|
Hi Ed,
Thanks for your information. I will use the newsgroup from now ;-)
----- Original Message -----
From: "Ed Merks" <merks@xxxxxxxxxx>
To: "Eclipse Modelling Framework" <emf-dev@xxxxxxxxxxx>
Sent: Monday, June 27, 2005 3:38 PM
Subject: Re: [emf-dev] Several Schemas in WSDL file
Fran,
Please use the newsgroup for questions rather than the mailing list. You
can use xsdResource.getContents() to get all the schemas.
Ed Merks/Toronto/IBM@IBMCA
mailto: merks@xxxxxxxxxx
905-413-3265 (t/l 969)
"Francisco Sanchez Cid" <sa840@xxxxxxxxxxxxxx>
Sent by: emf-dev-bounces@xxxxxxxxxxx
06/27/2005 08:32 AM
Please respond to
Eclipse Modelling Framework
To
<emf-dev@xxxxxxxxxxx>
cc
Subject
[emf-dev] Several Schemas in WSDL file
Hi all,
I hava an WSDL file containing 4 schemas (defining complex and simple
types). I have tried to access those schemas, (see code below) but it
seems it only retrieves the first schema from the WSDL file.
Someone has any idea about it?
Thanks n advance,
Fran
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("wsdl",
new XSDResourceFactoryImpl());
// Create a resource set and load the main schema file into it.
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getLoadOptions().put(XSDResourceImpl.XSD_TRACK_LOCATION,
Boolean.TRUE);
XSDResourceImpl xsdSchemaResource =
(XSDResourceImpl)resourceSet.getResource(URI.createDeviceURI(schemaURL),
true);
for (Iterator resources = resourceSet.getResources().iterator();
resources.hasNext(); /* no-op */)
{
// Return the first schema object found
Resource resource = (Resource)resources.next();
if (resource instanceof XSDResourceImpl)
{
XSDResourceImpl xsdResource = (XSDResourceImpl)resource;
return xsdResource.getSchema();
}
}
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev
--------------------------------------------------------------------------------
_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev