Couple of questions:
I have an EJB that throws a user-defined exception named "userException"
Java2WSDL produces WSDL with the following information:
<wsdl:message name="UserException">
<wsdl:part name="fault" type="tns1:UserException"/>
</wsdl:message>
<wsdl:operation name="userException">
<wsdl:input name="userExceptionRequest" message
="impl:userExceptionRequest"/>
<wsdl:output name="userExceptionResponse" message
="impl:userExceptionResponse"/>
<wsdl:fault name="UserException" message="impl:UserException"/>
</wsdl:operation>
When the WSDL is generated, the following message is produced:
createWSDL:
[echo] Creating WSDL...
[java] Feb 25, 2003 9:54:36 AM
org.apache.axis.wsdl.fromJava.Types isBeanCo
mpatible
[java] WARNING: The class java.lang.Throwable is defined in a
java or javax
package and cannot be converted into an xml schema type. An xml
schema anyType
will be used to define this class in the wsdl file.
[java] Feb 25, 2003 9:54:36 AM
org.apache.axis.wsdl.fromJava.Types isBeanCo
mpatible
[java] WARNING: The class java.lang.StackTraceElement is defined
in a java
or javax package and cannot be converted into an xml schema type. An
xml schema
anyType will be used to define this class in the wsdl file.
[echo] Done creating WSDL.
1) What does this really mean, and is it expected?
2) The EJB implementation simply throws a new user exception, i.e., throw
new userException("some message"); Is Apache-AXIS supposed to map this
into a SOAP Fault? That is not happening, and I am able to catch the
exception versus detecting a fault. Also, I am using WSIF, but am not sure
if AXIS or WSIF if responsible for the mapping.
Thanks.