Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 17:32 Go to next message
michael.mott is currently offline michael.mott
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 16:28 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
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 03:40 Go to previous message
Shane Clarke is currently offline Shane Clarke
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: Thu Jul 31 05:40:01 EDT 2014

Powered by FUDForum. Page generated in 0.02182 seconds