Try this code, that work for me... and look at the end of the Web Address.

real ObtenerTipoCambio(date fecha)
{
    str sfecha;
    real ntipocambio = -1;
    WebService ws;
    ;
    try
    {
        sfecha = date2str(fecha, 321, 2, 3, 2, 3, 4);
        ws = new
WebService("http://crux.bccr.fi.cr/bccr/TipoCambio.asmx?wsdl");
        ntipocambio = ws.getTipoCambioVentaHistorico("Ricoh Lanier de Costa
Rica", sfecha);
    }
    catch
    {
        ntipocambio = -1;
    }
    return ntipocambio;
}

Regards,
RM.




--------------------------------------------------------------------------------
De: gonzalo_edo [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 25 de Agosto de 2004 10:14 a.m.
Para: [EMAIL PROTECTED]
Asunto: [development-axapta] Web Service/XML


I execute the code to connect to an Web Service and this error is
returned:

Method 'MSSoapInit' in COM object of class 'MSSOAP.SoapClient'
returned error code 0x80020009 (DISP_E_EXCEPTION) which means:
WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 -
WSDLReader:XML Parser failed at linenumber 62, lineposition 19,
reason is: End tag 'span' does not match the start tag 'br'.
HRESULT=0x1.


This is the code I'm using:

str 3   user= 'GBS';
    COM soapClient = new COM("MSSOAP.SoapClient");
WebService w = new WebService
("http://crux.bccr.fi.cr/bccr/TipoCambio.asmx");
    print w.getTipoCambioVenta(user);
    pause;

What am I doing wrong??

Does Axapta don't support .asmx Web Services??

I hope anybody has a solution to this...

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to