|
Re: Convert javax.wsdl.Definition to wst.Definition [message #218418 is a reply to message #218399] |
Mon, 28 July 2008 16:57 |
Eclipse User |
|
|
|
Originally posted by: valentinbaciu.hotmail.com
Hi Gregory,
The recommended way to get a org.eclipse.wst.wsdl.Definition is by loading a
WSDL document with a WSDL resource.
See this unit test helper class for examples
org.eclipse.wst.wsdl.tests.util.DefinitionLoader.
For constructing a Definition given a DOM you could try something like this:
Definition definition = WSDLFactory.eINSTANCE.createDefinition();
definition.setElement(element);
but there are some other things that need set up to get everything working
properly.
You could look at
org.eclipse.wst.wsdl.internal.impl.DefinitionImpl.createDefi nition(Node,
String, boolean) for an example.
The implementation of org.eclipse.wst.wsdl.util.WSDLResourceImpl should
also be interesting to read.
In general searching the org.eclipse.wst.wsdl and org.eclipse.wst.wsdl.tests
should always yield some interesting examples.
Regards, Valentin
"Gregory Van Segbroeck" <gregory.vanseghbroeck@intec.ugent.be> wrote in
message news:4c40d5063e8c7433b7fd39d11035641c$1@www.eclipse.org...
> Hi everybody,
>
> Is there a way to create a wst.Definition from a DOM.Element or from a
> javax.wsdl.Definition object?
>
> Thanks in advance,
> Gregory
>
|
|
|
Powered by
FUDForum. Page generated in 0.02675 seconds