Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Jax-WS creation and editing workflow(Jax-WS creation and editing workflow)
Jax-WS creation and editing workflow [message #723926] Fri, 09 September 2011 21:32 Go to next message
michael.mott is currently offline michael.mottFriend
Messages: 1
Registered: September 2011
Junior Member
Either I am confused about the workflow of editing web services created with WTP or their is a problem.

I created a POJO and used the Web Service wizard to create a bottom up web service. This web service accepts no parameters. Here is the code:

public class test {
public String doTest() {

return "hello";
}

}

Now I make a change so that the web service will accept a string. I add the String parameter to my function declaration. At this point I run the Web Service wizard again to generate new WSDL file, etc. but nothing changes. The files generated by the wizard are not updated.


Is this how it's supposed to work? What should I do to re generate my web service resources?

Thank you,
Michael
Re: Jax-WS creation and editing workflow [message #724695 is a reply to message #723926] Mon, 12 September 2011 20:28 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Sep-11 15:32, michael.mott wrote:
> Either I am confused about the workflow of editing web services created
> with WTP or their is a problem.
>
> I created a POJO and used the Web Service wizard to create a bottom up
> web service. This web service accepts no parameters. Here is the code:
>
> public class test {
> public String doTest() {
>
> return "hello";
> }
>
> }
>
> Now I make a change so that the web service will accept a string. I add
> the String parameter to my function declaration. At this point I run the
> Web Service wizard again to generate new WSDL file, etc. but nothing
> changes. The files generated by the wizard are not updated.
>
>
> Is this how it's supposed to work? What should I do to re generate my
> web service resources?
>
> Thank you,
> Michael

Are you insisting on using a WSDL? Would you like to try writing a
RESTful service? I know a lot more about JAX-RS. If, however, you insist
on JAX-WS, I do have a sample project I can zip up and send you.
Re: Jax-WS creation and editing workflow [message #725190 is a reply to message #723926] Wed, 14 September 2011 07:40 Go to previous message
Shane Clarke is currently offline Shane ClarkeFriend
Messages: 67
Registered: July 2009
Member
Hi Michael,

If when first generating your Web service you choose to generate wrapper/fault beans
(and this option is selected by default in the preferences when generating a bottom-up Web service with the CXF web service runtime)

you will need to either delete the wrapper beans or update the beans to align with the changes you make to the method signatures
of your SEI/Implementation class before regenerating your web service.

The CXF Java2WS Tool which the Web Services wizard delegates to when in the bottom-up mode will not regenerate the wrapper beans if they already exist.

However it also looks like there's a bug in the wizard code in that it does not copy an updated WSDL file that's re-generated by the JavaWS
tool to the wsdl folder in the WebContent directory of the Dynamic Web Project if there's an already existing wsdl file.

I've opened the following bugzilla to track that:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=357597

Thanks,
Shane
Previous Topic:target namespace of CMElementDeclaration
Next Topic:WTP [JSF2] webapp + Ajax features - plugin/suggestions?
Goto Forum:
  


Current Time: Fri Mar 29 09:36:01 GMT 2024

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

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

Back to the top