You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by Asaf Lahav <as...@gmail.com> on 2009/05/19 10:49:28 UTC
Adding a schema type
Hi,
Can anyone provide with a code sample or shed some light on how to add
a Schema definition under the types element of the wsdl?
Asaf
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Adding a schema type
Posted by Asaf Lahav <as...@gmail.com>.
FOUND IT!
Sorry for the hassle...
###################################################
Sample:
try {
ErrorReporter errReporter = new ErrorReporterImpl();
DescriptionElement descriptionElement =
WSDLFactory.newInstance().newDescription();
Schema schema = new InlinedSchemaImpl();
XMLElement xsdElement = new DOMXMLElement(errReporter);
schema.setXMLElement(xsdElement);
descriptionElement.getTypesElement().addSchema(schema);
} catch (Exception e) {
e.printStackTrace();
}
###################################################