I'm trying to generate a wsdl from a class that throws a AxisFault and
the fault tag is not generated in the wsdl, do I have to add the fault
definition myself?  I'm using Axis2 right now

Thanks,

John

On 7/4/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Are you using Axis1? If so, then you want to define your exception to
extend AxisFault.

See:
http://ws.apache.org/axis/java/apiDocs/org/apache/axis/AxisFault.html
http://www.stylusstudio.com/api/axis-1_1/org/apache/axis/class-use/AxisFault.htm
http://www.devx.com/ibm/Article/20250
http://webservices.sys-con.com/read/39721.htm

Anne

On 7/4/06, Constantino Alarc?n Mery <[EMAIL PROTECTED]> wrote:
>  Hello (my english is bad, sorry) I need publish a class with axis. This
> class is: public class MessageDelegate {
>  public String getMessage() throws MessageFault {
>  throw new MessageFault(99,"Mule error");
>  }
> }
>
>  The MessageFault exception is: public class MessageFault {
>  private int errorCode;
>  private String errorDescr;
>  public int getErrorCode() {
>  return errorCode;
>  }
>  public String getErrorDescr() {
>  return errorDescr;
>  }
>  public MessageFault(int errorCode, String errorDescr){
>  this.errorCode = errorCode;
>  this.errorDescr = errorDescr;
>  }
> }
>
>  I wish catch MessageFault exception in the client code: public static void
> main(String args[]) {
>
>  try {
>  MessageDelegateService service = new
> MessageDelegateServiceLocator();
>  MessageDelegate proxy = service.getMessageDelegate(...);
>  System.out.println(proxy.getMessage());
>  } catch (AxisFault af) {
>  ... ??
>  }
> }
>
>  I can not catch a exception. I dont know how do.
>
>  Who can help me? I have not finding nothing about this axis exception
> handler (URL, Article, ...)
> ________________________________
>  View this message in context: Checked Exception - User Exception with Axis
>  Sent from the Axis - User forum at Nabble.com.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to