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

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

soapUI tutorial for Eclipse

In this tutorial we will show how to deploy and test your Web Services on 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, and … Read more

Web services Handler Chains tutorial

Web Services and their clients may need to access the SOAP message for additional processing of the message request or response. You can create SOAP message handlers to enable Web Services and clients to perform this additional processing on the SOAP message. A SOAP message handler provides a mechanism for intercepting the SOAP message in … Read more

Apache CXF Interceptors

Interceptors are the fundamental processing unit which is native in Apache CXF. Basically they are Java classes that intercept your message to provide or apply certain core services to it. In this tutorial we will show how to use them and how to create some custom ones. Apache CXF provides many built-in Interceptors that provide … Read more

JAX-WS Basic authentication

In the context of an HTTP transaction, BASIC access authentication is a method for a web browser or other client program to provide a user name and password when making a request. This tutorial shows how to perform BASIC authentication using Apache CXF Interceptors and, as alternative, the JAX-WS WebServiceContext. One advantage of the BASIC … Read more

Installing Apache CXF on JBoss AS

In this tutorial we will show how you can easily to install Apache-CXF on the new JBoss AS 7 application server. Why Do we need to installing Apache CXF on JBoss AS ? JBoss AS 6/7 by default ships with Apache CXF’s JAX-WS implementation,so if you need to develop regular JAX-WS Web services you have … Read more

Developing Web services on JBoss AS 7

In this tutorial we will show how to deploy a JAX-WS Web service on JBoss AS 7. You will see how you can easily deploy and test a Web service in the new application server release. In order to use Web services in the new application server release you need the following extension in your … Read more