In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Translate

Foro público de Xailer en español
Responder
zeasoftware
Mensajes: 1831
Registrado: Mar Oct 11, 2005 9:53 am

Translate

Mensaje 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.
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Translate

Mensaje por jlalin »

Ramón
> catch (Exception ex)
> {
> txtResultado.Text = ex.ToString();
> }
TRY
...
CATCH oError
txtResultado:cText := oError:Description
Saludos,
José Lalí­n
zeasoftware
Mensajes: 1831
Registrado: Mar Oct 11, 2005 9:53 am

Translate

Mensaje 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
--
Responder