Let's see now how to create and register a JAX-RPC handler. This handler will be executed each time a SOAP message is send or received by your client. The purpose of this first example is to show how to trace the SOAP message using javax.xml.transform for the response message. Find below the code for the handler, we will see after how to register it.
If we have to modify the SOAP message returned by the web service (e.i.: to match a specific deserializer), we could need to use the DOM to change or to add some attributes.
Now we have to register one of the above handler to complete the demo. In this case I will use my JAX-RPC/AXIS simple client. I list below the code for the simple readLS() remote procedure for my JWSDP web service (rpc/encoded version).
You can refer eventually to the Section called Use AXIS and JAX-RPC to create a SOAP client with WSDL2Java (for rpc encoded or document literal operation style) to use the AXIS tool: WSDL2Java for the service endpoint interface generation class (in this case the RcxReadLS class).
![]() | ![]() | ![]() |
| Consume a .NET web service with Java | ![]() My home page Index RSS | Make a SOAP client using PHP and NuSoap. |