Re: Refactoring a WSDL with CXF and Eclipse...

2007-12-28 Thread Jonathan Huang

You are right. The generator will use the existing
ResponseWrapper/RequestWrapper to generate wsdl. And if you delete the
WrapperBean, generator will generate the new WrapperBeans firstly.  When you
delete the wrappers, you'd better use clean tool to re-generate the wsdl.

Additionally, the coming release of STP will have a new java first tool
integrated with CXF 2.1 and this problem will be resolved.  



Just find a way to work around. 
If modifying existing method, I need to manually delete
ResponseWrapper/RequestWrapper first before it could re-generate wsdl. I was
assuming it would override those wrappers. But obviously it is not.

@WebMethod(operationName=sayHi, exclude=false)
@ResponseWrapper(className=demo.spring.SayHiResponse,
localName=sayHiResponse, targetNamespace=http://spring.demo/;)
@RequestWrapper(className=demo.spring.SayHi, localName=sayHi,
targetNamespace=http://spring.demo/;)
public java.lang.String sayHi(
java.lang.String text,
java.lang.Boolean isName, 
java.lang.Integer name   );



I try 1)adding a new method and 2)removing a method. It does regenerate wsdl
file.
But when I change the signature for existing method such as adding/remove
one parameter,
it's NOT update wsdl file. 

--


Hi,
 You should re-build your project after you have changed the service.
Then the wsdl will be regenerated.
 Or, you can set auto-build option from menu [Project- Build
Automatically]. And then the project will be built automatically after you
have changed the service.
 
 Furthur more, I have double-checked that the wsdl would be changed if
the service changed, such as adding a new method, changing the name of a
method, removing a method and so on. 


yulinxp wrote:
 
 I have followed your steps. But I still have the same problem when trying
 to regenerate wsdl file.
 I don't have Generate WSDL option in the popup menu when right click the
 Project .
 
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,
  Please follow the steps to try again :) ()
  1. Download the eclipse sdk 3.3 from: 
  http://www.eclipse.org/downloads
  2. Download the all-in-one STP package from: 
   
 http://www.eclipse.org/downloads/download.php?file=/stp/downloads/drops/R-R200710161054-200710161054/stp-all-in-one-incubation-R-R200710161054-200710161054.zip
  3. Un-pack these two packages to one folder.
  4. Download the CXF 2.0.3 runtime from: 
http://incubator.apache.org/cxf/download.html
  5. Un-pack the cxf package to some folder.
  6. Start eclipse from the location where you just un-pack the eclipse
 sdk and stp packages.
  7. Click [Window]--[Preferences...]--[SOA Tools]--[Installed
 Runtimes] to add a Apache CXF 2.0 runtime.
  8. Start the java first project wizard and chose the runtime you just
 create in the runtime page.
  9. Then do what you want do...
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tp13899015p14523777.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-12-27 Thread Jonathan Huang

Hi,
 You should re-build your project after you have changed the service.
Then the wsdl will be regenerated.
 Or, you can set auto-build option from menu [Project- Build
Automatically]. And then the project will be built automatically after you
have changed the service.
 
 Furthur more, I have double-checked that the wsdl would be changed if
the service changed, such as adding a new method, changing the name of a
method, removing a method and so on. 


yulinxp wrote:
 
 I have followed your steps. But I still have the same problem when trying
 to regenerate wsdl file.
 I don't have Generate WSDL option in the popup menu when right click the
 Project .
 
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,
  Please follow the steps to try again :) ()
  1. Download the eclipse sdk 3.3 from: 
  http://www.eclipse.org/downloads
  2. Download the all-in-one STP package from: 
   
 http://www.eclipse.org/downloads/download.php?file=/stp/downloads/drops/R-R200710161054-200710161054/stp-all-in-one-incubation-R-R200710161054-200710161054.zip
  3. Un-pack these two packages to one folder.
  4. Download the CXF 2.0.3 runtime from: 
http://incubator.apache.org/cxf/download.html
  5. Un-pack the cxf package to some folder.
  6. Start eclipse from the location where you just un-pack the eclipse
 sdk and stp packages.
  7. Click [Window]--[Preferences...]--[SOA Tools]--[Installed
 Runtimes] to add a Apache CXF 2.0 runtime.
  8. Start the java first project wizard and chose the runtime you just
 create in the runtime page.
  9. Then do what you want do...
 
   
 
 
 
 
 Tophebboy wrote:
 
 ==Hi!
 
 
 
 Jonathan Huang wrote:
 
 Hi, Tophebboy 
  Have you try to build your project after refactoring your SEI??
 
 ==Yes 
 
  Have you add Jax-ws related annotaions to the modified SEI??
 
 == Yes
 
  When you right click the Project, does the operation Generate
 WSDL appear in the popup menu??
 
 == No. I only have Create Jax-WS handler, Enable Jax-WS and
 Disable Jax-WS
 
 
 
 Tophebboy wrote:
 
 Hi!
 I'm using Eclipse 3.3.0 and STP 0.7.
 Anyway, I don't have the option generate wsdl.
 On top of that, once I generate the code, the SEI is changed to use
 new classes created in the service package and and cannot rebuild the
 wsdl then...
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,  
 I am not sure which version of eclipse you use. 
 If you use the old one, you could set Build Automatically for
 your project. Then if you refactor SEI, the related wsdl will be
 updated automatically. If the Build Automatically is not set, you
 should build your project manually after refactoring your SEI and the
 wsdl will also be updated.
 If you use the eclipse with the latest STP, you could use the
 Generate WSDL operation to update the wsdl file after you refactor
 your SEI.  
  Hope useful for you!
  
 
 Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is
 not updated...Anyway, I tried to Create a new Java First project to
 create a new SEI, a new WSDL, and I updated the WSDL of my former
 project with the new one, hoping that I could regenerate the code
 this way. But no! The operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor
 my web services when I have to because re-doing everything from the
 beginning is very VERY long!
 Thanks in advance!!!
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tp13899015p14511139.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-12-26 Thread yulinxp

I have followed your steps. But I still have the same problem when trying to
regenerate wsdl file.
I don't have Generate WSDL option in the popup menu when right click the
Project .



Jonathan Huang wrote:
 
 Hi Tophebboy,
  Please follow the steps to try again :) ()
  1. Download the eclipse sdk 3.3 from: 
  http://www.eclipse.org/downloads
  2. Download the all-in-one STP package from: 
   
 http://www.eclipse.org/downloads/download.php?file=/stp/downloads/drops/R-R200710161054-200710161054/stp-all-in-one-incubation-R-R200710161054-200710161054.zip
  3. Un-pack these two packages to one folder.
  4. Download the CXF 2.0.3 runtime from: 
http://incubator.apache.org/cxf/download.html
  5. Un-pack the cxf package to some folder.
  6. Start eclipse from the location where you just un-pack the eclipse sdk
 and stp packages.
  7. Click [Window]--[Preferences...]--[SOA Tools]--[Installed Runtimes]
 to add a Apache CXF 2.0 runtime.
  8. Start the java first project wizard and chose the runtime you just
 create in the runtime page.
  9. Then do what you want do...
 
   
 
 
 
 
 Tophebboy wrote:
 
 ==Hi!
 
 
 
 Jonathan Huang wrote:
 
 Hi, Tophebboy 
  Have you try to build your project after refactoring your SEI??
 
 ==Yes 
 
  Have you add Jax-ws related annotaions to the modified SEI??
 
 == Yes
 
  When you right click the Project, does the operation Generate
 WSDL appear in the popup menu??
 
 == No. I only have Create Jax-WS handler, Enable Jax-WS and
 Disable Jax-WS
 
 
 
 Tophebboy wrote:
 
 Hi!
 I'm using Eclipse 3.3.0 and STP 0.7.
 Anyway, I don't have the option generate wsdl.
 On top of that, once I generate the code, the SEI is changed to use new
 classes created in the service package and and cannot rebuild the wsdl
 then...
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,  
 I am not sure which version of eclipse you use. 
 If you use the old one, you could set Build Automatically for
 your project. Then if you refactor SEI, the related wsdl will be
 updated automatically. If the Build Automatically is not set, you
 should build your project manually after refactoring your SEI and the
 wsdl will also be updated.
 If you use the eclipse with the latest STP, you could use the
 Generate WSDL operation to update the wsdl file after you refactor
 your SEI.  
  Hope useful for you!
  
 
 Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is
 not updated...Anyway, I tried to Create a new Java First project to
 create a new SEI, a new WSDL, and I updated the WSDL of my former
 project with the new one, hoping that I could regenerate the code
 this way. But no! The operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor
 my web services when I have to because re-doing everything from the
 beginning is very VERY long!
 Thanks in advance!!!
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tp13899015p14503449.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-28 Thread Jonathan Huang

Hi Tophebboy,
 Please follow the steps to try again :) ()
 1. Download the eclipse sdk 3.3 from: 
 http://www.eclipse.org/downloads
 2. Download the all-in-one STP package from: 
  
http://www.eclipse.org/downloads/download.php?file=/stp/downloads/drops/R-R200710161054-200710161054/stp-all-in-one-incubation-R-R200710161054-200710161054.zip
 3. Un-pack these two packages to one folder.
 4. Download the CXF 2.0.3 runtime from: 
   http://incubator.apache.org/cxf/download.html
 5. Un-pack the cxf package to some folder.
 6. Start eclipse from the location where you just un-pack the eclipse sdk
and stp packages.
 7. Click [Window]--[Preferences...]--[SOA Tools]--[Installed Runtimes]
to add a Apache CXF 2.0 runtime.
 8. Start the java first project wizard and chose the runtime you just
create in the runtime page.
 9. Then do what you want do...

  




Tophebboy wrote:
 
 ==Hi!
 
 
 
 Jonathan Huang wrote:
 
 Hi, Tophebboy 
  Have you try to build your project after refactoring your SEI??
 
 ==Yes 
 
  Have you add Jax-ws related annotaions to the modified SEI??
 
 == Yes
 
  When you right click the Project, does the operation Generate
 WSDL appear in the popup menu??
 
 == No. I only have Create Jax-WS handler, Enable Jax-WS and Disable
 Jax-WS
 
 
 
 Tophebboy wrote:
 
 Hi!
 I'm using Eclipse 3.3.0 and STP 0.7.
 Anyway, I don't have the option generate wsdl.
 On top of that, once I generate the code, the SEI is changed to use new
 classes created in the service package and and cannot rebuild the wsdl
 then...
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,  
 I am not sure which version of eclipse you use. 
 If you use the old one, you could set Build Automatically for
 your project. Then if you refactor SEI, the related wsdl will be
 updated automatically. If the Build Automatically is not set, you
 should build your project manually after refactoring your SEI and the
 wsdl will also be updated.
 If you use the eclipse with the latest STP, you could use the
 Generate WSDL operation to update the wsdl file after you refactor
 your SEI.  
  Hope useful for you!
  
 
 Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is
 not updated...Anyway, I tried to Create a new Java First project to
 create a new SEI, a new WSDL, and I updated the WSDL of my former
 project with the new one, hoping that I could regenerate the code this
 way. But no! The operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor
 my web services when I have to because re-doing everything from the
 beginning is very VERY long!
 Thanks in advance!!!
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tf4857122.html#a13990252
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-26 Thread Jonathan Huang

Hi, Tophebboy 
 Have you try to build your project after refactoring your SEI??
 Have you add Jax-ws related annotaions to the modified SEI??
 When you right click the Project, does the operation Generate WSDL
appear in the popup menu??


Tophebboy wrote:
 
 Hi!
 I'm using Eclipse 3.3.0 and STP 0.7.
 Anyway, I don't have the option generate wsdl.
 On top of that, once I generate the code, the SEI is changed to use new
 classes created in the service package and and cannot rebuild the wsdl
 then...
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,  
 I am not sure which version of eclipse you use. 
 If you use the old one, you could set Build Automatically for your
 project. Then if you refactor SEI, the related wsdl will be updated
 automatically. If the Build Automatically is not set, you should build
 your project manually after refactoring your SEI and the wsdl will also
 be updated.
 If you use the eclipse with the latest STP, you could use the
 Generate WSDL operation to update the wsdl file after you refactor your
 SEI.  
  Hope useful for you!
  
 
 Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is not
 updated...Anyway, I tried to Create a new Java First project to create a
 new SEI, a new WSDL, and I updated the WSDL of my former project with
 the new one, hoping that I could regenerate the code this way. But no!
 The operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor my
 web services when I have to because re-doing everything from the
 beginning is very VERY long!
 Thanks in advance!!!
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tf4857122.html#a13945723
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-26 Thread Tophebboy

==Hi!



Jonathan Huang wrote:
 
 Hi, Tophebboy 
  Have you try to build your project after refactoring your SEI??
 
 ==Yes 
 
  Have you add Jax-ws related annotaions to the modified SEI??
 
 == Yes
 
  When you right click the Project, does the operation Generate
 WSDL appear in the popup menu??
 
 == No. I only have Create Jax-WS handler, Enable Jax-WS and Disable
 Jax-WS
 
 
 
 Tophebboy wrote:
 
 Hi!
 I'm using Eclipse 3.3.0 and STP 0.7.
 Anyway, I don't have the option generate wsdl.
 On top of that, once I generate the code, the SEI is changed to use new
 classes created in the service package and and cannot rebuild the wsdl
 then...
 
 
 Jonathan Huang wrote:
 
 Hi Tophebboy,  
 I am not sure which version of eclipse you use. 
 If you use the old one, you could set Build Automatically for your
 project. Then if you refactor SEI, the related wsdl will be updated
 automatically. If the Build Automatically is not set, you should build
 your project manually after refactoring your SEI and the wsdl will also
 be updated.
 If you use the eclipse with the latest STP, you could use the
 Generate WSDL operation to update the wsdl file after you refactor
 your SEI.  
  Hope useful for you!
  
 
 Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is not
 updated...Anyway, I tried to Create a new Java First project to create
 a new SEI, a new WSDL, and I updated the WSDL of my former project with
 the new one, hoping that I could regenerate the code this way. But no!
 The operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor my
 web services when I have to because re-doing everything from the
 beginning is very VERY long!
 Thanks in advance!!!
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tf4857122.html#a13950872
Sent from the cxf-user mailing list archive at Nabble.com.



Refactoring a WSDL with CXF and Eclipse...

2007-11-22 Thread Tophebboy

Hi!
I have to create Web Services with CXF and Eclipse.
When I follow the tutorial Java fisrt, everything is OK.
But, when I have to refactor my SEI, I lose everything: the wsdl is not
updated...Anyway, I tried to Create a new Java First project to create a new
SEI, a new WSDL, and I updated the WSDL of my former project with the new
one, hoping that I could regenerate the code this way. But no! The operation
generate code does nothing!!!
Please help me! I really don't know how to do to be able to refactor my web
services when I have to because re-doing everything from the beginning is
very VERY long!
Thanks in advance!!!
-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tf4857122.html#a13899015
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-22 Thread Jonathan Huang

Hi Tophebboy,  
I am not sure which version of eclipse you use. 
If you use the old one, you could set Build Automatically for your
project. Then if you refactor SEI, the related wsdl will be updated
automatically. If the Build Automatically is not set, you should build
your project manually after refactoring your SEI and the wsdl will also be
updated.
If you use the eclipse with the latest STP, you could use the Generate
WSDL operation to update the wsdl file after you refactor your SEI.  
 Hope useful for you!
 

Tophebboy wrote:
 
 Hi!
 I have to create Web Services with CXF and Eclipse.
 When I follow the tutorial Java fisrt, everything is OK.
 But, when I have to refactor my SEI, I lose everything: the wsdl is not
 updated...Anyway, I tried to Create a new Java First project to create a
 new SEI, a new WSDL, and I updated the WSDL of my former project with the
 new one, hoping that I could regenerate the code this way. But no! The
 operation generate code does nothing!!!
 Please help me! I really don't know how to do to be able to refactor my
 web services when I have to because re-doing everything from the beginning
 is very VERY long!
 Thanks in advance!!!
 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tf4857122.html#a13906590
Sent from the cxf-user mailing list archive at Nabble.com.