Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Programmatically launching web service explorer
Programmatically launching web service explorer [message #227811] Fri, 13 February 2009 15:30 Go to next message
Eclipse UserFriend
Originally posted by: marius.eich.gmx.de

Hello,

I'd like to know if there is a way of programmatically launching the web
service explorer from another plugin. I haven't found any information about
this yet. I tried to launch the explorer by running
org.eclipse.wst.ws.internal.explorer.action.LaunchWSEAction but there is an
access restriction. Any ideas?

Thanks in advance and best regards
Marius Eich
Re: Programmatically launching web service explorer [message #228008 is a reply to message #227811] Wed, 18 February 2009 18:41 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Try using the WSExplorerLauncherCommand.

There is an example of this in the WSEGenerateCommand (found in the
org.eclipse.jst.ws.consumption.ui plugin)

Marius Eich wrote:
> Hello,
>
> I'd like to know if there is a way of programmatically launching the web
> service explorer from another plugin. I haven't found any information about
> this yet. I tried to launch the explorer by running
> org.eclipse.wst.ws.internal.explorer.action.LaunchWSEAction but there is an
> access restriction. Any ideas?
>
> Thanks in advance and best regards
> Marius Eich
>
>
Re: Programmatically launching web service explorer [message #228089 is a reply to message #228008] Fri, 20 February 2009 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.eich.gmx.de

Hi Mark,

thank you very much. It worked.

Best regards
Marius

"Mark Hutchinson" <mahutch@ca.ibm.com> schrieb im Newsbeitrag
news:gnhkv5$3io$1@build.eclipse.org...
> Try using the WSExplorerLauncherCommand.
>
> There is an example of this in the WSEGenerateCommand (found in the
> org.eclipse.jst.ws.consumption.ui plugin)
>
> Marius Eich wrote:
>> Hello,
>>
>> I'd like to know if there is a way of programmatically launching the web
>> service explorer from another plugin. I haven't found any information
>> about this yet. I tried to launch the explorer by running
>> org.eclipse.wst.ws.internal.explorer.action.LaunchWSEAction but there is
>> an access restriction. Any ideas?
>>
>> Thanks in advance and best regards
>> Marius Eich
Re: Programmatically launching web service explorer [message #228630 is a reply to message #228089] Wed, 04 March 2009 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.eich.gmx.de

Hi again,

now that I managed to launch the web service explorer from my plugin, I'm
trying to launch it with a binding already selected. There is no problem in
preselecting the correct wsdl by setting the wsdl location as launchoption
with the key LaunchOptions.WSDL_URL.
Now I thought that I could preselect a binding belonging to this wsdl by
adding the wsdl option and an option with the key
LaunchOptions.BINDING_NAME_STRING and the correct binding name as value. But
that doesn't work. After launching the explorer, the wsdl is selected and
one can select a binding from the binding list. Can anyone tell me what I
did wrong or where to find an example for this?

Thanks and best regards
Marius Eich

"Marius Eich" <marius.eich@gmx.de> schrieb im Newsbeitrag
news:gnmltd$emv$1@build.eclipse.org...
> Hi Mark,
>
> thank you very much. It worked.
>
> Best regards
> Marius
>
> "Mark Hutchinson" <mahutch@ca.ibm.com> schrieb im Newsbeitrag
> news:gnhkv5$3io$1@build.eclipse.org...
>> Try using the WSExplorerLauncherCommand.
>>
>> There is an example of this in the WSEGenerateCommand (found in the
>> org.eclipse.jst.ws.consumption.ui plugin)
>>
>> Marius Eich wrote:
>>> Hello,
>>>
>>> I'd like to know if there is a way of programmatically launching the web
>>> service explorer from another plugin. I haven't found any information
>>> about this yet. I tried to launch the explorer by running
>>> org.eclipse.wst.ws.internal.explorer.action.LaunchWSEAction but there is
>>> an access restriction. Any ideas?
>>>
>>> Thanks in advance and best regards
>>> Marius Eich
>
>
Re: Programmatically launching web service explorer [message #228865 is a reply to message #228630] Thu, 12 March 2009 19:35 Go to previous message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Hi,

Sorry for taking so long to respond. I'm not sure why this doesn't
work. I can't find any places in WTP where we use this option.

Try setting a breakpoint in the LaunchOptionsManager.loadOptions method
to see what's going on there. Make sure the bindingNameStrings array
gets populated with your binding name, and then follow the code into
WSDLPerspective.preselectServiceOrBinding.

If you find a bug with the code please open a bug, and feel free to
contribute a patch.

I hope this helps,
Mark

Marius Eich wrote:
> Hi again,
>
> now that I managed to launch the web service explorer from my plugin, I'm
> trying to launch it with a binding already selected. There is no problem in
> preselecting the correct wsdl by setting the wsdl location as launchoption
> with the key LaunchOptions.WSDL_URL.
> Now I thought that I could preselect a binding belonging to this wsdl by
> adding the wsdl option and an option with the key
> LaunchOptions.BINDING_NAME_STRING and the correct binding name as value. But
> that doesn't work. After launching the explorer, the wsdl is selected and
> one can select a binding from the binding list. Can anyone tell me what I
> did wrong or where to find an example for this?
>
> Thanks and best regards
> Marius Eich
>
> "Marius Eich" <marius.eich@gmx.de> schrieb im Newsbeitrag
> news:gnmltd$emv$1@build.eclipse.org...
>> Hi Mark,
>>
>> thank you very much. It worked.
>>
>> Best regards
>> Marius
>>
>> "Mark Hutchinson" <mahutch@ca.ibm.com> schrieb im Newsbeitrag
>> news:gnhkv5$3io$1@build.eclipse.org...
>>> Try using the WSExplorerLauncherCommand.
>>>
>>> There is an example of this in the WSEGenerateCommand (found in the
>>> org.eclipse.jst.ws.consumption.ui plugin)
>>>
>>> Marius Eich wrote:
>>>> Hello,
>>>>
>>>> I'd like to know if there is a way of programmatically launching the web
>>>> service explorer from another plugin. I haven't found any information
>>>> about this yet. I tried to launch the explorer by running
>>>> org.eclipse.wst.ws.internal.explorer.action.LaunchWSEAction but there is
>>>> an access restriction. Any ideas?
>>>>
>>>> Thanks in advance and best regards
>>>> Marius Eich
>>
>
>
Previous Topic:Removal of deprecated classes, methods, and statics
Next Topic:which method is called when select "START" from server's context menu?
Goto Forum:
  


Current Time: Tue Mar 19 02:52:07 GMT 2024

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

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

Back to the top