Grid, assuming I understood your question correctly, how about this:

      ASDMultiPageEditor wsdlEditor = (ASDMultiPageEditor)getWorkbenchPart
();
      W11Description description = (W11Description) wsdlEditor.getModel();
      Definition definition = (Definition) description.getTarget();
      Element element = definition.getElement();

Regards,
Valentin Baciu
Rational XML Web Services Tools);



From:       grid qian <[email protected]>
To:         [email protected]
Date:       11/13/2009 02:59 AM
Subject:    [wtp-dev] how to get a wsdl document element in my action class
            that extends IObjectActionDelegate and is added to wsdl editor.
Sent by:    [email protected]



Hi all,

I create a action that extend the IObjectActionDelegate to do something on
a porttype.
In the action, I need to get the wsdl document element. If the porttype is
in the wsdl
directly, it is ok. But if the porttype is from other wsdl file that is
imported into this wsdl
file, I do not know how to get the wsdl document.
That is to say:
a.wsdl import b.wsdl. In the b.wsdl, there is a porttype, b-porttype. I use
wsdl editor to open
a.wsdl, I can get the b.wsdl information in the wsdl editor because a.wsdl
import b.wsdl.
right-click on the b-porttype, myAction is displayed, click it. I want to
get the a.wsdl document
element in myAction class.
How to do this?_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

<<inline: graycol.gif>>

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to