|
| MyEclipse Web Service Tools | MyEclipse 5.0 M2 introduces a wide range of productivity tools and services to assist in the development, deployment, and testing of web services. MyEclipse Web Service Tools use the XFire 1.2 Java SOAP framework. XFire is an open-source, next generation, standards-based framework. It includes: - Web Service standards: SOAP, WSDL, WS-I Basic Profile, WS-Addressing, WS-Security, JSR-181 WS annotations
- Java-XML binding technology: Aegis, JAXB2 & 1, XMLBeans, Castor, and JIBX
- Multiple transport support: HTTP, JMS, XMPP, in-memory
- High performance SOAP stack
- many more...
|
|
| New Web Service Project Capability | MyEclipse web service capabilities enable all MyEclipse web service tools and services to recognize and operate correctly within a project. A project configured with MyEclipse web service capabilities can be identified with the bell overlay icon, and will have the MyEclipse web service nature and a special builder that manages staging of the XFire services.xml deployment descriptor file during application server deployment. See the Web Service Project Wizard for how to create a MyEclipse web services project.
Note: the next release will include the ability to add Web Service Capabilities to existing projects.
|
|
| MyEclipse XFire Libraries | MyEclipse-XFire libraries simplify the build-path management of XFire JARs. The libraries are organized around XFire features. Thus you can pick and choose the XFire features that you wish to support with in your project by adding or removing the feature-specific MyEclipse-XFire libraries.
|
|
| MyEclipse Web Service Preferences | The MyEclipse web service preferences enable you to configure the JAR contents of the MyEclipse-XFire libraries. To access this preference page, from the workbench menubar select Window>Preferences>MyEclipse>Project Capabilities>Web Services.
|
|
Web Service Project Wizard
| The Web Service Project Wizard enables you to quickly create a MyEclipse J2EE web project configured with web service capabilities. MyEclipse web service capabilities enable all MyEclipse web service tools and services to recognize and operate correctly within a project. During the project creation process the web project is configured with the XFire servlet.
Launch the Web Services Project wizard by selecting File>New>Project...>MyEclipse>J2EE Projects>Web Service Project.
Specify web project details.
Specify XFire servlet and services.xml deployment descriptor details.
Select the MyEclipse-XFire libraries that will be added to the new project's build-path.
Upon completion of the wizard a new web project with web services capabilities will be created and configured.
|
|
Web Service Wizard - Code-first/bottom-up scenario
| The MyEclipse Web Service Wizard supports the code-first web service development scenario. Code-first concentrates initial development effort towards the creation of application business logic in the form of Java beans (POJOs) prior to defining the web service interfaces (WSDL). The wizard supports creation of web services from existing Java beans or will generate new Java beans if instructed.
Launch the web service wizard from the MyEclipse perspective toolbar.
Select the web service capable project in which the new web service will be created and the Bottom-up scenario option.
Enter the new web service name and implementation details. Select Finish to create the web service.
Upon completion the wizard has created the Java interface, IHelloWorldService, the Java class, HelloWorldServiceImpl, and added a <service> entry in the XFire services.xml deployment descriptor.
|
|
Web Service Wizard - Interface-first/top-down scenario
| The MyEclipse Web Service Wizard supports the code-first web service development scenario. Code-first concentrates initial development effort towards the creation of application business logic in the form of Java beans (POJOs) prior to defining the web service interfaces (WSDL). The wizard supports creation of web services from existing Java beans or will generate new Java beans if instructed.
Specify the WSDL file location, the Java-XML binding to generate, and the Java source folder and package where web service skeleton will be generated. Select Finish to complete the wizard.
Upon completion the wizard has added a <service> entry to the services.xml file and generated the Java-XML binding classes, the HelloWorldServicePortType interface, the HelloWorldServiceImpl class and the HellowWorldServiceClient class. Note that the project's compiler compatibility settings must be set to Java5 or greater as the generated Java code includes Java 5 - JSR-181 annotations.
|
|
Services.xml Deployment Descriptor Editor
| The XFire framework is configured with by services.xml deployment descriptor file. This file is a Spring beans XML configuration file that utilizes XBean customizations. The MyEclipse XFire Deployment Descriptor Editor extends the MyEclipse XML Editor with grammar-based code-assistance and validation using an implicit special XFire DTD, custom code-assist for XML elements that define Java classes and interfaces.
|
|
JAX-WS/JSR-181 Annotation Support
| MyEclipse enables the Java Editor to support JSR-181 annotations. Simply add the MyEclipse-XFire Core library to your web service project's build-path and the Java Editor will immediately begin recognizing web service annotations.
|
|
Web Service Explorer
| The Web Service Explorer enables you to test any web services for which a WSDL document is accessible. The Web Service Explorer reads a WSDL document for the service you wish to interact with and generates a dynamic interface that allows you to send SOAP requests and view corresponding SOAP responses.
Launch the Web Services Explorer from the MyEclipse perspective toolbar.
Select the WSDL mode and enter the path to the WSDL file. In the example below we used the URL http://localhost:8080/HelloWorld/services/HelloWorldService?WSDL. Once the WSDL is retrieved the Web Service Explorer will present a list of end points. Below you can see the 'example' operation is exposed and has 1 input parameter named in0. When the Go button is pressed, a SOAP request is constructed to invoke the 'example' operation and the string 'helloworld' is bound to the in0 parameter in the request. The result of the operation is displayed in the Status pane.
|
|
| Web Service Deployment and Debugging | The MyEclipse J2EE application deployment service recognizes and is able to deploy MyEclipse J2EE web and enterprise projects configured with MyEclipse web services capabilities. The deployment services are able to package and publish the web service project in both exploded archive form for development time debugging and in packaged archive form for production time distribution. The deployment service provides hot-sync update of all modified Java and web resources of a web service project to all of its exploded deployments.
Once deployed, standard MyEclipse web debugging facilities are available to all web services projects. These include hot-swap Java debugging and hot-sync JSP and JavaScript debugging.
|
|
Web Service Project Properties
| The MyEclipse web service project properties dialog enables you to define the design-time location of the XFire services.xml deployment descriptor file within the project.
|
|
WSDL File Wizard
| The WSDL File Wizard will create a skeleton WSDL file. To launch the wizard, select File>New>Other>MyEclipse>Web Services>WSDL.
Enter the namespace and select 'Create WSDL Skeleton'. Select Finish to complete the wizard and generate the file.
Upon completion the skeleton WSDL file is created and opened in the MyEclipse XML editor for review and revision.
|
|