Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Contributing a Web service CLIENT runtime with UI in WTP
Contributing a Web service CLIENT runtime with UI in WTP [message #221544] Wed, 17 September 2008 21:47 Go to next message
John Palof is currently offline John PalofFriend
Messages: 16
Registered: July 2009
Junior Member
I need to offer a web service runtime that influences the generation of
clients.

The "Contributing a Web service runtime with UI in WTP"
( http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRTWithUI.html)
was very helpful but was limited to a discussion of extending the
org.eclipse.jst.ws.consumption.ui.serviceRuntimes. Regardless, it seemed a
very a good place to start in an attempt to extend
org.eclipse.jst.ws.consumption.ui.clientRuntimes. Unfortunately, I am
having a problem where the widgets are being created without the model being
retrieved from the command class identified by
DataMappingRegistry.addMapping. As a result, I have a null model in my
widgets, which isn't good.

I have added a clientRuntimes extension to this example and provide it as an
attachment to this posting. If you attempt to generate a client with "Web
service example runtime", you will encounter a nullpointer when the
contributed UI is built.

I have attempted to trace the underlying framework code but I am not well
acquainted with it and have been stuck longer than I want to admit.

Help would be greatly appreciated.


Changes to the sample:
1) Created ExampleWebserviceClient.java which creates two pre-existing
commands.
2) Modified ExampleRuntime.getWebServiceClient to return
ExampleWebserviceClient
3) Added the org.eclipse.jst.ws.consumption.ui.clientRuntimes extension in
the plugin.xml

Thank you,
John


Re: Contributing a Web service CLIENT runtime with UI in WTP [message #221584 is a reply to message #221544] Thu, 18 September 2008 22:39 Go to previous messageGo to next message
John Palof is currently offline John PalofFriend
Messages: 16
Registered: July 2009
Junior Member
I neglected to try this on ganymede prior to my post. It does work on 3.4.
I will see if there are any updates available to 3.3 in hopes that I can
offer the customization there too.


Thank you,


>I need to offer a web service runtime that influences the generation of
>clients.
>
> The "Contributing a Web service runtime with UI in WTP"
> ( http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRTWithUI.html)
> was very helpful but was limited to a discussion of extending the
> org.eclipse.jst.ws.consumption.ui.serviceRuntimes. Regardless, it seemed
> a very a good place to start in an attempt to extend
> org.eclipse.jst.ws.consumption.ui.clientRuntimes. Unfortunately, I am
> having a problem where the widgets are being created without the model
> being retrieved from the command class identified by
> DataMappingRegistry.addMapping. As a result, I have a null model in my
> widgets, which isn't good.
>
> I have added a clientRuntimes extension to this example and provide it as
> an attachment to this posting. If you attempt to generate a client with
> "Web service example runtime", you will encounter a nullpointer when the
> contributed UI is built.
>
> I have attempted to trace the underlying framework code but I am not well
> acquainted with it and have been stuck longer than I want to admit.
>
> Help would be greatly appreciated.
>
>
> Changes to the sample:
> 1) Created ExampleWebserviceClient.java which creates two pre-existing
> commands.
> 2) Modified ExampleRuntime.getWebServiceClient to return
> ExampleWebserviceClient
> 3) Added the org.eclipse.jst.ws.consumption.ui.clientRuntimes extension in
> the plugin.xml
>
> Thank you,
> John
>
>
>
Re: Contributing a Web service CLIENT runtime with UI in WTP [message #222520 is a reply to message #221584] Tue, 30 September 2008 20:52 Go to previous messageGo to next message
Kathy Chan is currently offline Kathy ChanFriend
Messages: 93
Registered: July 2009
Member
Hi John,

The doc you refer to is the right documentation to use for contributing Web
service service runtime and client runtime. You could look at the other
examples in the org.eclipse.jst.ws.axis.* and org.eclipse.jst.ws.axis2.*
plugins under the Webservices component for examples of how the client
runtimes are defined.

Nice to hear that you got it working with WTP 3.0. I assume you were having
trouble originally with WTP 2.0.x? If that's the case, I would suggest you
move to WTP 3.0.x since we had made quite a bit of fixes and enhancements in
that release.

Regards,
Kathy Chan

"John Palof" <john.palof@soa.com> wrote in message
news:gaulaa$d7o$1@build.eclipse.org...
>I neglected to try this on ganymede prior to my post. It does work on 3.4.
>I will see if there are any updates available to 3.3 in hopes that I can
>offer the customization there too.
>
>
> Thank you,
>
>
>>I need to offer a web service runtime that influences the generation of
>>clients.
>>
>> The "Contributing a Web service runtime with UI in WTP"
>> ( http://www.eclipse.org/webtools/jst/components/ws/documents/ ContributingWebServiceRTWithUI.html)
>> was very helpful but was limited to a discussion of extending the
>> org.eclipse.jst.ws.consumption.ui.serviceRuntimes. Regardless, it
>> seemed a very a good place to start in an attempt to extend
>> org.eclipse.jst.ws.consumption.ui.clientRuntimes. Unfortunately, I am
>> having a problem where the widgets are being created without the model
>> being retrieved from the command class identified by
>> DataMappingRegistry.addMapping. As a result, I have a null model in my
>> widgets, which isn't good.
>>
>> I have added a clientRuntimes extension to this example and provide it as
>> an attachment to this posting. If you attempt to generate a client with
>> "Web service example runtime", you will encounter a nullpointer when the
>> contributed UI is built.
>>
>> I have attempted to trace the underlying framework code but I am not well
>> acquainted with it and have been stuck longer than I want to admit.
>>
>> Help would be greatly appreciated.
>>
>>
>> Changes to the sample:
>> 1) Created ExampleWebserviceClient.java which creates two pre-existing
>> commands.
>> 2) Modified ExampleRuntime.getWebServiceClient to return
>> ExampleWebserviceClient
>> 3) Added the org.eclipse.jst.ws.consumption.ui.clientRuntimes extension
>> in the plugin.xml
>>
>> Thank you,
>> John
>>
>>
>>
>
>
Re: Contributing a Web service CLIENT runtime with UI in WTP [message #223290 is a reply to message #221544] Thu, 30 October 2008 12:53 Go to previous message
Eric Peters is currently offline Eric PetersFriend
Messages: 27
Registered: July 2009
Junior Member
Hi John,

I am currently updating the sample & docs related to contributing runtimes
and interested to see the problems you had contributing your client
runtime in the attachment you posted. I cannot download the attachment as
seems to have become corrupted in your post? If you could try and
reattach or let me know how to access?

Thanks,
Previous Topic:Contributing actions to XML editor popup/context menu
Next Topic:What to specify for "servlet" in the web.xml for a web service: The Implementation or Inte
Goto Forum:
  


Current Time: Mon Dec 22 05:39:55 GMT 2014

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

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