[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTTP/1.0 417 Expectation failed using weather web service
Hello,
I'm trying to use a sample of calling a SOAP weather web service
([1]http://www.webservicex.net/WeatherForecast.asmx) but when I run
the program I got the following error: HTTP/1.0 417 Expectation failed
This is part of the program
SOAP =
'<soapenv:Envelope +
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" +
xmlns:web="http://www.webservicex.net"> +
<soapenv:Header/> +
<soapenv:Body> +
<web:GetWeatherByZipCode> +
<web:ZipCode>28273</web:ZipCode> +
</web:GetWeatherByZipCode> +
</soapenv:Body> +
</soapenv:Envelope>';
rc = http_url_post_xml(
'http://www.webservicex.net/WeatherForecast.asmx'
: %addr(SOAP)
: %len(%trimr(SOAP))
: *null
: %paddr(endTag)
: *null
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml'
:
'"http://www.webservicex.net/GetWeatherByZipCode"');
Thanks for your help.
Pablo Wolff
Senior Systems Analyst
Optical Experts Manufacturing
(704) 504-1877 Ext. 274
Cell: (704) 975-3413
2345 Township Road
Charlotte, NC 28273
P please don't print this e-mail unless you really need to
References
1. http://www.webservicex.net/WeatherForecast.asmx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------