users@jax-rpc.java.net

xrpcc questions

From: David Thorpe <david.thorpe_at_LOGICLIBRARY.COM>
Date: Thu, 01 Aug 2002 15:00:08 -0600

I have been using JAXRPC bundled with the JWSDP 1.0.

1. I noticed when my service methods threw exceptions that the xrpcc command would generate a serializer for the exception and give the serializer class the same package as the exception. So, for example, a method throwing InterruptedException would generate an InterruptedException_SOAPSerializer class in package java.lang. Ideally, I would want these generated exception serializers to have the same package name as specified in the config.xml. Am I missing a coniguration parameter somewhere?

2. On a related topic, when I make the call to the service method from my Java client through the generated stub, any exception that the service method throws is getting wrapped in a SOAPFaultException when it gets to the client. Since the XML representation of the exception class gets placed in the detail element of the fault element, couldn't the jaxrpc stub create the service-thrown exception from the xml on the client side and have that be the exception that is thrown from the soap call? Therefore, instead of having to catch SOAPFaultException, I could have a catch for the actual exception the service throws?

3. Some web service code generators are able to take an EJB and generate the necessary classes for the web service directly from the EJB. I'm assuming there is no way to do that with xrpcc. Will any future release have this functionality? Are there any alternative tools that will generate jaxrpc classes from an EJB?

Thanks for any help on these questions.
David