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

SetError() #66: XML parse failed at line 2, col 0: no element found



   Hello,

      I have been banging my head against the wall trying to figure this
   out...  This is my first attempt at using HTTPAPI and I get to the web
   site and download the file OK just cannot parse it.  It appears to have
   all the tags escaped correctly.
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R1M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: MAY
DNS server found: 192.9.200.31
DNS server found: 129.250.35.250
DNS server found: 129.250.35.251
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /DgieWSWeb/DgieWS?WSDL HTTP/1.1
Host: www.banxico.org.mx
User-Agent: http-api/1.29
Content-Type: text/xml
SOAPAction: http://www.banxico.org.mx/DgieWSWeb/DgieWS
Content-Length: 437


senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?><soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ws="http://ws.dgie.banxico.org.mx";> <soapenv:Header/> <soapenv:Body> <ws:tiposDeCambioBanxico soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </soapenv:Body> </soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Sun Microsystems Inc./1.6)
X-OPNET-Transaction-Trace: pid=4628,requestid=f2975113-fb42-4b88-8876-2577cea3e62e
Set-Cookie: _op_aixPageId=a_fff36019-926d-481b-b205-5205a478277a; Path=/
Content-Type: text/xml;charset=utf-8
Date: Wed, 17 Feb 2016 20:26:53 GMT
Set-Cookie: ser98070=3327084202.34335.0000; path=/
Set-Cookie: TS014a759c=0118e010061bb255a71c4556195fafb8bd8578bc5d1e59e88fd1e39edd55f2b60ca975f9be6155963e2388445c6f92465c79a710be0f8d4c5afd812a940b92ecce7661c3cd; Path=/
Transfer-Encoding: chunked
Set-Cookie: ORF_wwwBanx=2522236586.20480.0000; path=/


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
header_load_cookies() entered
cookie_parse() entered
cookie =  _op_aixPageId=a_fff36019-926d-481b-b205-5205a478277a; Path=/
cookie attr _op_aixPageId=a_fff36019-926d-481b-b205-5205a478277a
cookie attr Path=/
cookie_parse() entered
cookie =  ser98070=3327084202.34335.0000; path=/
cookie attr ser98070=3327084202.34335.0000
cookie attr path=/
cookie_parse() entered
cookie =  TS014a759c=0118e010061bb255a71c4556195fafb8bd8578bc5d1e59e88fd1e39edd55f2b60ca975f9be6155963e2388445c6f92465c79a710be0f8d4c5afd812a940b92ecce7661c3cd; Path=/
cookie attr TS014a759c=0118e010061bb255a71c4556195fafb8bd8578bc5d1e59e88fd1e39edd55f2b60ca975f9be6155963e2388445c6f92465c79a710be0f8d4c5afd812a940b92ecce7661c3cd
cookie attr Path=/
cookie_parse() entered
cookie =  ORF_wwwBanx=2522236586.20480.0000; path=/
cookie attr ORF_wwwBanx=2522236586.20480.0000
cookie attr path=/
recvchunk(): entered
get_chunk_size(): entered
12ed

chunk size = 4845
get_chunk_size returned 4845
calling comm_blockread
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Header><X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="0" xsi:type="soapenc:string" xmlns:X-OPNET-Transaction-Trace="http://opnet.com"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>pid=4628,requestid=106c65f1-72fd-4344-ad1e-8851c5299e0e</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace></soapenv:Header><soapenv:Body><ns1:tiposDeCambioBanxicoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="http://ws.dgie.banxico.org.mx";><result xsi:type="xsd:string">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;CompactData xmlns=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message&quot;
xmlns:bm=&quot;http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact&quot;
xmlns:compact=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact&quot;
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd&quot; &gt;
	&lt;Header&gt;
		&lt;ID&gt;TIPOSDECAMBIO&lt;/ID&gt;
		&lt;Test&gt;false&lt;/Test&gt;
		&lt;Truncated&gt;false&lt;/Truncated&gt;
		&lt;Name xml:lang=&quot;sp&quot;&gt;Tipos de Cambio&lt;/Name&gt;
		&lt;Prepared&gt;2016-02-17 14:26:54.274&lt;/Prepared&gt;
		&lt;Sender id=&quot;BANXICO&quot;&gt;
			&lt;Name xml:lang=&quot;sp&quot;&gt;Banco de M&#xE9;xico&lt;/Name&gt;
			&lt;Contact&gt;
			&lt;Name xml:lang=&quot;sp&quot;&gt;Subgerencia de Desarrollo de Sistemas&lt;/Name&gt;
			&lt;Telephone&gt;(01 55)52372678&lt;/Telephone&gt;
			&lt;/Contact&gt;
		&lt;/Sender&gt;
		&lt;DataSetAction&gt;Update&lt;/DataSetAction&gt;
		&lt;Extracted&gt;2016-02-17 14:26:54.274&lt;/Extracted&gt;
	&lt;/Header&gt;
	&lt;bm:DataSet&gt;
		&lt;bm:SiblingGroup BANXICO_FREQ=&quot;Dia&quot; TIME_FORMAT=&quot;P1D&quot;/&gt;
		&lt;bm:Series TITULO=&quot;Tipo de cambio pesos por d&#xF3;lar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de liquidaci&#xF3;n&quot; IDSERIE=&quot;SF60653&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;PesoxDoll&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;18.8471&quot;/&gt;
		&lt;/bm:Series&gt;
		&lt;bm:Series TITULO=&quot;Tipo de cambio                                          Pesos por d&#xF3;lar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinaci&#xF3;n (FIX)&quot; IDSERIE=&quot;SF43718&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;PesoxDoll&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;18.3895&quot;/&gt;
		&lt;/bm:Series&gt;
		&lt;bm:Series TITULO=&quot;Cotizaci&#xF3;n de las divisas que conforman la canasta del DEG Respecto al peso mexicano Euro&quot; IDSERIE=&quot;SF46410&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;Peso&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;20.496937&quot;/&gt;
		&lt;/bm:Series&gt;
		&lt;bm:Series TITULO=&quot;Cotizaci&#xF3;n de la divisa Respecto al peso mexicano D&#xF3;lar Canadiense&quot; IDSERIE=&quot;SF60632&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;Peso&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;13.3601&quot;/&gt;
		&lt;/bm:Series&gt;
		&lt;bm:Series TITULO=&quot;Cotizaci&#xF3;n de las divisas que conforman la canasta del DEG Respecto al peso mexicano Yen japon&#xE9;s&quot; IDSERIE=&quot;SF46406&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;Peso&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;0.161128&quot;/&gt;
		&lt;/bm:Series&gt;
		&lt;bm:Series TITULO=&quot;Cotizaci&#xF3;n de las divisas que conforman la canasta del DEG Respecto al peso mexicano Libra esterlina&quot; IDSERIE=&quot;SF46407&quot; BANXICO_FREQ=&quot;Dia&quot; BANXICO_FIGURE_TYPE=&quot;TipoCambio&quot; BANXICO_UNIT_TYPE=&quot;Peso&quot;&gt;
			&lt;bm:Obs TIME_PERIOD=&quot;2016-02-17&quot; OBS_VALUE=&quot;26.317213&quot;/&gt;
		&lt;/bm:Series&gt;
	&lt;/bm:DataSet&gt;
&lt;/CompactData&gt;
</result></ns1:tiposDeCambioBanxicoResponse></soapenv:Body></soapenv:Envelope>
comm_blockread returned 4845


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R1M0

SetError() #66: XML parse failed at line 2, col 0: no element found
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------