[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when retrieving weather info using WEATHR01 pgm (w/ debug info)



Yeah, I'm having problems, too.  If you create a debug file, you'll see 
that the web service is NOT returning an XML document (that's why you're 
getting the XML parse error)

Instead, it's returning the following simple string:

       Could not connect to Database Server

Presumably, the NOAA is having some technical difficulties.


MKirkpatrick@xxxxxxxxxxxxxxxxx wrote:
>    Everything has been working fine (for several months) using Scott's
>    WEATHR01 pgm to get the weather forecast by zip code.  That is, until
>    this morning. The pgm has not changed.
>    Now I am getting the following error:
>    CALL PGM(WEATHR01) PARM('90814')
>    XML parse failed at line 1, col 0: syntax error
>    From program . . . . . . . . . :   HTTPAPIR4
>      From library . . . . . . . . :     LIBHTTP
>      From module  . . . . . . . . :     HTTPUTILR4
>      From procedure . . . . . . . :     HTTP_CRASH
>      From statement . . . . . . . :     3395
>    Anyone else having problems starting today?
>    Part of the debug txt:
>    http_persist_open(): entered
>    http_long_ParseURL(): entered
>    DNS resolver retrans: 2
>    DNS resolver retry  : 2
>    DNS resolver options: x'00000136'
>    DNS default domain: WDS
>    DNS server found: 10.0.10.3
>    http_persist_post(): entered
>    http_long_ParseURL(): entered
>    do_post(): entered
>    POST /forecasts/xml/SOAP_server/ndfdXMLserver.php HTTP/1.1
>    Host: 140.90.113.200
>    User-Agent: http-api/1.23
>    Content-Type: text/xml
>    Expect: 100-continue
>    Content-Length: 488
>    SOAPAction:
>    "[1]http://140.90.113.200/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatL
>    onListZipCode"
>    recvresp(): entered
>    SetError() #43: CommTCP_read: No 100-Continue (error ignored)
>    senddoc(): entered
>    <soapenv:Envelope
>    xmlns:xsi="[2]http://www.w3.org/2001/XMLSchema-instance";
>    xmlns:xsd="[3]http://www.w3.org/2001/XMLSchema";
>    xmlns:soapenv="[4]http://schemas.xmlsoap.org/soap/envelope/";
>    xmlns:ndf="[5]http://140.90.113.200/forecasts/xml/DWMLgen/wsdl/ndfdXML
>    .wsdl"> <soapenv:Header/> <soapenv:Body> <ndf:LatLonListZipCode
>    soapenv:encodingStyle="[6]http://schemas.xmlsoap.org/soap/encoding/";>
>    <zipCodeList xsi:type="xsd:string">90814</zipCodeList>
>    </ndf:LatLonListZipCode> </soapenv:Body> </soapenv:Envelope>
>    recvresp(): entered
>    HTTP/1.1 100 Continue
>    Date: Wed, 03 Jun 2009 21:25:45 GMT
>    Via: 1.1 nws-hq-cache01 (NetCache NetApp/6.0.6)
>    SetError() #13: HTTP/1.1 100 Continue
>    HTTP/1.1 200 OK
>    Date: Wed, 03 Jun 2009 21:25:45 GMT
>    Content-Length: 36
>    Content-Type: text/html; charset=iso-8859-1
>    Expires: Wed, 03 Jun 2009 23:25:45 GMT
>    Cache-Control: max-age=7200
>    Server: Apache
>    Vary: Accept-Encoding,User-Agent
>    Via: 1.1 nws-hq-cache01 (NetCache NetApp/6.0.6)
>    SetError() #13: HTTP/1.1 200 OK
>    recvdoc parms: identity 36
>    header_load_cookies() entered
>    recvdoc(): entered
>    SetError() #0:
>    Could not connect to Database Server
>    http_close(): entered
>    SetError() #66: XML parse failed at line 1, col 0: syntax error
>    Thanks.
>     
> 
> References
> 
>    1. http://140.90.113.200/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode
>    2. http://www.w3.org/2001/XMLSchema-instance
>    3. http://www.w3.org/2001/XMLSchema
>    4. http://schemas.xmlsoap.org/soap/envelope/
>    5. http://140.90.113.200/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl
>    6. http://schemas.xmlsoap.org/soap/encoding/
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------