Página 1 de 1

Translate

Publicado: Jue Jun 16, 2011 4:43 pm
por zeasoftware
Alguien podria apoyarme a interpretar este codigo de C# a Xailer?
Lo que requiero es obtener el valor de:
txtResultado.Text = ex.ToString();
{ WST.WSTimbreSoapClient lsWST = new WST.WSTimbreSoapClient();
try {
string strIdCajaTimbre = lsWST.generaTimbre(updateXmlCFDi0());
txtResultado.Text = strIdCajaTimbre;
}
catch (Exception ex) //regresa el codigo del error en ex, no error de
runtime...
{
txtResultado.Text = ex.ToString();
}
}
Gracias de antemano.

Translate

Publicado: Jue Jun 16, 2011 8:42 pm
por jlalin
Ramón
> catch (Exception ex)
> {
> txtResultado.Text = ex.ToString();
> }
TRY
...
CATCH oError
txtResultado:cText := oError:Description
Saludos,
José Lalí­n

Translate

Publicado: Jue Jun 16, 2011 9:10 pm
por zeasoftware
Gracias JL, el asunto es que:
Description me trae :
DISP_E_MEMBERNOTFOUND,
GENERATIMBRE ......

otros que encontre para usar son MSSOAP.SoapClient30 me dan:
Faultcode=Client
Faultstring=Client:Unspecified client error.
FaultActor=
Detail=Client:Unspecified client error. HRESULT=0x80020007: Argumentos sin
y en el ejemplo que tengo de C# me da:
System.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: Error al Timbrar ::.System.ArgumentException: 401 - Fecha y hora de genración fuera de rangos
at GAS.FrameWork.Timbre.Bussines.Timbre.Timbre.generaTimbre()
at GAS.FrameWork.Timbre.Service.WST.Service.RecibeCFDI(String CFDi) in C:UsersEdgardoDocumentsVisual Studio 2010ProjectsGAS.FrameWork.TimbreGAS.FrameWork.Timbre.Serv ice.WSTCFDiCajaTimbre.asmx.cs:line 159
at GAS.FrameWork.Timbre.Service.WST.Service.RecibeCFDI(String CFDi) in C:UsersEdgardoDocumentsVisual Studio 2010ProjectsGAS.FrameWork.TimbreGAS.FrameWork.Timbre.Serv ice.WSTCFDiCajaTimbre.asmx.cs:line 165
--- End of inner exception stack trace ---
Lo que me interesa es lo que esta resaltado y negritas.
Saludos.
Ramón Zea
--