To test a Java Web Service, there are several methods:
Send SOAP message. You can write a Java program to send SOAP message to a Web Service and process the returned output SOAP message using the SAAJ API
Use Dynamic Invocation. You can use the Dynamic Invocation method defined by JAX-RPC
Use Dynamic Proxy. You can use the Dynamic Proxy method defined by JAX-RPC
Use Client Proxy. You can use a client proxy to invoke a Web Service easily. If you use the JWSDP, you can use the wscompile.bat tool to generate a client proxy. If you use Apache Axis, you can use the java org.apache.axis.wsdl.WSDL2Java Java class