How to test SOAP Web Services

This tutorial will teach how to test SOAP Web Services using open source testing tools or Java testing frameworks. Coding our SOAP Web Service Let’s start from the definition of our JAX-WS Web Service contract: @WebService public interface AccountWSItf { @WebMethod public String newAccount( String name); @WebMethod public String withdraw(String name, long amount) throws RuntimeException; … Read more

How to develop CXF Web services with JBoss

Please note, this article has been written for JBoss AS 5 so the content might not be suitable for the latest version of the application server.
For WildFly users, we recommend checking this article: SOAP Web services on WildFly made simple

JBoss AS 5 ships with Apache CXF web services implementation. In this tutorial we will show how to create a simple Web service endpoint and how to deploy and test it with a client.

Read more

Expose EJB 3 as Web Services

Starting with Java EE 7, JAX-WS 2.2 is the standard specification for SOAP web services on the Java EE platform. Developing SOAP-based web services using JAX-WS is straightforward and easy. By using annotations, a web service can be written and deployed within minutes.  Enhancing support for Web services is a driving force introduced since the … Read more

JAX-WS asynchronous Web Services made simple

Developing rigorous and responsive web service client applications has always been a challenge for architects and developers. JAX-WS 2.0 comes with one effective solution to this problem: asynchronous web service invocation. In this article, we will provide an exposition of this technology with examples built upon the reference implementation. The JAX-WS programming model offers two … Read more

Creating SOAP Messages Programmatically

In this tutorial we will learn how to create a javax.xml.soap.SOAPMessage programmatically using SOAPBody and SOAPElement objects and how to create one from a String. First of all the javax.xml.soap.SOAPMessage is the root class for all SOAP messages. As transmitted on the “wire”, a SOAP message is an XML document or a MIME message whose … Read more

Using Spring CXF descriptors in WildFly

In some cases, users might still want to consume Spring cxf.xml descriptors. On client side, in order to do that, the Spring libraries need to be available in the current thread classloader. For the Web Services stack to have correct visibility over Spring classes, the Spring libraries need to be properly installed in a specific … Read more

Web services deployment descriptor: jboss-webservices.xml

For those willing to configure a given Web Services endpoint deployment without adding a compile time dependency to WildFly (or Apache CXF) specific classes, the jboss-webservices.xml descriptor can be also used. It needs to be placed either in WEB-INF or META-INF folder of the deployment (depending on it being a war or jar archive) and … Read more

Using Axis Web Services with JBoss

Apache Axis is an implementation of the SOAP (“Simple Object Access Protocol”). This project has been decommissioned in favor of Apache CXF, therefore it is highly recommended that you migrate your Axis Web services to Apache CXF. If you need to use Axis Web services in a recent JBoss EAP / WildFly application, you should … Read more

soapUI tutorial for Eclipse

In this tutorial we will show how to deploy and test your Web Services on WildFly /JBoss application server using soapUI plugin. soapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use graphical interface, and enterprise-class features, soapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, … Read more