| Summary: | Request support for JAX-WS build.xml creation | ||
|---|---|---|---|
| Product: | [WebTools] WTP Webservices | Reporter: | Derek Palma <derek.palma> |
| Component: | jst.ws.jaxws | Assignee: | Project Inbox <wtp.inc.jaxws-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Shane Clarke <shane_clarke> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | keith.chong.ca |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | 3.2 M4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | jaxws | ||
|
Description
Derek Palma
There's 2 build.xml files that i could generate. The first is generated by CXF itself when running Java2WS or WSDL2Java. But it's only used to start a generated JAX-WS client or server. It won't re-run Java2WS or WSDL2Java. The second approach will generate code and it uses extension points to plug into the Web Services > Ant Files wizard. see this link to get an idea of how it would work when implemented: http://www.eclipse.org/webtools/jst/components/ws/1.0/tutorials/WebServiceAntTask/WebServiceAntTask.html Basically you'd use the wizard to generate some ANT files into a project. You'd then have to edit the generated properties file to point to the artifact you want to start with. Then you run the generated build file. I had a play around with this, created an extension point, got it to run and generate code after setting some defaults in the WTP preferences. I also had to make a few changes to the CXF Commands that we use in the wizards to get it to work. This had the side effect of messing up some other things. So i'll have to do some more digging to see it we can provide both paths (current wizards & ANT) for generating JAX-WS code. Leaving the target milestone at unspecified for now. Fix committed. There are now options in the Web Services > ANT Files wizard for CXF Bottom-up, Top-down and Client scenarios. There are however two limitations when running the Bottom-up scenario in the ANT environment in that the extract interface operation and the annotate operation won't run. So the Java classes, interfaces will need to be annotated with @WebService before running the ANT build file. I still need to update the user documentation with specific CXF ANT related tasks. For now it works as outlined here for Apache Axis. http://wiki.eclipse.org/Creating_Web_service_and_Web_service_client_using_Ant_tasks For the "Using the Ant Task at the Command Line" section in that link, the CXF ANT property files need to be copied into the org.eclipse.wst.command.env plugin before running. The ANT Files wizard generates the property files. |