[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Time Out when calling web services
The www.webserviceX.NET web services are not very reliable. They often time
out.
Just try it again a bit later.
Thomas.
Chamara Withanachchi schrieb:
> Hi,
> I'm getting a Timeout error while calling web services
> from [1]www.webserviceX.NET can some one guide me where I went wrong.
> SOAP = '<?xml version="1.0" encoding="utf-8"?> +
> <soap:Envelope +
>
> xmlns:xsi="[2]http://www.w3.org/2001/XMLSchema-instance" +
> xmlns:xsd="[3]http://www.w3.org/2001/XMLSchema" +
>
> xmlns:soap="[4]http://schemas.xmlsoap.org/soap/envelope/"> +
> <soap:Body> +
> <ConversionRate
> xmlns="[5]http://www.webserviceX.NET/"> +
> <FromCurrency>' + %Trim(frmCurr) +
> '</FromCurrency> +
> <ToCurrency>' + %Trim(toCurr) +
> '</ToCurrency> +
> </ConversionRate> +
> </soap:Body> +
> </soapenv:Envelope>';
> http_setCCSIDs(1208: 0);
> http_debug(*ON);
> rc = http_url_post_xml( '[6]http://www.webservicex.net/' +
> 'CurrencyConvertor.asmx'
> : %addr(SOAP) + VARYINGDATAOFFSET
> : %len(SOAP)
> : *NULL
> : %paddr(MapXmlData)
> : %addr(rate)
> : HTTP_TIMEOUT
> : HTTP_USERAGENT
> : 'text/xml; charset=UTF-8'
> : '"[7]http://www.webservicex.net/ +
> CurrencyConvertor.asmx"' );
> bellow is the debug log
> LOG****************
> New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819.
> ProtLoc=0
> http_persist_open(): entered
> http_long_ParseURL(): entered
> DNS resolver retrans: 2
> DNS resolver retry : 2
> DNS resolver options: x'00000136'
> DNS default domain:
> DNS server found: 10.10.10.88
> DNS server found: 10.10.10.201
> SetError() #7: Timeout occurred while trying to connect to server!
> --
> Regards,
> Chamara Withanachchi
> IBM Certified Power System Expert
> RPG Programmer
> (owner of [8]www.rpgiv.info)
> [9]WWW.RPGIV.INFO
> Mob: +971 50 5698644
> [10]chamaraw@xxxxxxxxxx
> i want to be future ready. i want control. i want an i.
>
> References
>
> 1. http://www.webserviceX.NET/
> 2. http://www.w3.org/2001/XMLSchema-instance
> 3. http://www.w3.org/2001/XMLSchema
> 4. http://schemas.xmlsoap.org/soap/envelope/
> 5. http://www.webserviceX.NET/
> 6. http://www.webservicex.net/
> 7. http://www.webservicex.net/
> 8. http://www.rpgiv.info/
> 9. http://WWW.RPGIV.INFO/
> 10. mailto:chamaraw@xxxxxxxxxx
>
>
>
> ------------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------