throw new soapexception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aquadry

    throw new soapexception

    I use client that invoke dynamically web method (using reflectio) everything
    is
    well, but not when the web method throws a soapexception.. . client receives a
    runtime error

    the code seems like this:

    MethodInfo mi;
    Object res;

    try
    {
    res = mi[indice].Invoke(obj,arg Values);
    }
    catch (SoapException se)
    {
    MessageBox.Show ("Détail du message d'erreur:\n" + se.Message + se.StackTrace);
    }

    the client receives this message error:
    An unhandled exception of type 'System.Reflect ion.TargetInvoc ationException'
    occurred in mscorlib.dll
    Additional information: Une exception a été levée par la cible d'un appel.

    any help ?
    and thanks a lot.
Working...