Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Convert javax.wsdl.Definition to wst.Definition
Convert javax.wsdl.Definition to wst.Definition [message #218399] Mon, 28 July 2008 14:31 Go to next message
Eclipse UserFriend
Originally posted by: gregory.vanseghbroeck.intec.ugent.be

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
Re: Convert javax.wsdl.Definition to wst.Definition [message #218418 is a reply to message #218399] Mon, 28 July 2008 16:57 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Possible bug in XML formatter
Next Topic:Force Eclipse to Publish?
Goto Forum:
  


Current Time: Thu Apr 25 13:27:02 GMT 2024

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

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

Back to the top