How to updated the Generated web service? [message #614470] |
Tue, 29 April 2008 04:52  |
Eclipse User |
|
|
|
Hi All,
After defining an Interface and generating a web service, I want to change
the definition of the web service. I mean I want to define a new method or
add a parameter to an existing method. But it seems that it is not so
simple because of two reasons:
1) STP has added annotations to the source of the defined Interface which
is a littile starnge for developer. Now if developer wants to add a
method, he have to not only define the signiture of the method (like the
definition of the first method), but also should add approperiate
annotations to the method. It is because STP generates the annotation only
in the first time and in futher changes, it does not generate any
annotation.
2) The generated WSDL file is not changed automatically after changing the
definition of the Web Service in the Interface and developer must change
it mannually. Therefore, he must know WSDL syntax which is not the case
usually.
If I am wrong or you have any idea please tell me.
Thanks a lot,
Arman
|
|
|
Re: How to updated the Generated web service? [message #614475 is a reply to message #614470] |
Thu, 01 May 2008 09:26  |
Eclipse User |
|
|
|
Hi Arman,
Arman wrote:
> 1) STP has added annotations to the source of the defined Interface which
> is a littile starnge for developer. Now if developer wants to add a
> method, he have to not only define the signiture of the method (like the
> definition of the first method), but also should add approperiate
> annotations to the method. It is because STP generates the annotation only
> in the first time and in futher changes, it does not generate any
> annotation.
The STP service creation code "gets you started" by injecting
the relevant annotations when you choose your interface. It's
true that it does not continue to watch you as you extend the
interface. Do you think this would be a good feature? If so,
the best thing to do is to file an enhancement request at the
STP bugzilla! [0]
> 2) The generated WSDL file is not changed automatically after changing the
> definition of the Web Service in the Interface and developer must change
> it mannually. Therefore, he must know WSDL syntax which is not the case
> usually.
Well, that sounds like a bug to me. STP should be helping the
developer to keep as far away as they want from WSDL :) Can you
file a bug for it? [0]
best regards
Oisin
[0] https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=S TP
--
Oisin Hurley at IONA
http://blogs.iona.com/ohurley/
|
|
|
Powered by
FUDForum. Page generated in 0.03551 seconds