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

[Ftpapi] SetError() #66: XML parse failed at line 2, col 43: not well-formed (invalid token)



Hi All,


I am trying to parse an xml response using HTTPAPI but getting an error "SetError() #66: XML parse failed at line 2, col 43: not well-formed (invalid token)". Please find attached the log.

I tried two approaches to parse - 1) directly 2) Save the response on IFS folder and then parsing. In both the situation the error is same.

I have validated the response and there is nothing wrong with it.

Can anyone please help me out with this.

--
Many Thanks,
Amit Sharma
HTTPAPI Ver 1.33 released 2016-12-06
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0

http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: xyz.local
WARNING: No name servers are configured for DNS resolution! You will not be able to contact Internet hosts! See http://www.scottklement.com/httpapi/dns.html for more information.
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 /CloudService/Service.svc/Site HTTP/1.1
Host: XXXXXXXXX
User-Agent: Http/4.1.1
Content-Type: text/xml
SOAPAction: "CloudService.Security/Site/EncryptPassword"
Content-Length: 338


senddoc(): entered
<?xml version="1.0" encoding="utf-8" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:red="CloudService.Security"><soapenv:Header/><soapenv:Body><red:EncryptPassword><red:username>amit</red:username><red:password>xyz@02</red:password></red:EncryptPassword></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153125";start-info="text/xml"
Server: Microsoft-IIS/8.5
MIME-Version: 1.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE10
Date: Fri, 24 Feb 2017 02:54:16 GMT


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
1d5

chunk size = 469
get_chunk_size returned 469
calling comm_blockread

--uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153125
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";><s:Body><EncryptPasswordResponse xmlns="RedmapCloudService.Security"><EncryptPasswordResult>4C21D20EAE292347399C65478561D85C42C2A3DA9F455AC6</EncryptPasswordResult></EncryptPasswordResponse></s:Body></s:Envelope>
comm_blockread returned 469


get_chunk_size(): entered
3b

chunk size = 59
get_chunk_size returned 59
calling comm_blockread

--uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153125--

comm_blockread returned 59


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.33 released 2016-12-06
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0

SetError() #66: XML parse failed at line 2, col 43: not well-formed (invalid token)


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: xyzaus.local
WARNING: No name servers are configured for DNS resolution! You will not be able to contact Internet hosts! See http://www.scottklement.com/httpapi/dns.html for more information.
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 /CloudService/Service.svc/Site HTTP/1.1
Host: XXXXXXXXXXXX
User-Agent: http-api/1.32
Content-Type: text/xml
SOAPAction: "CloudService.Security/Site/EncryptPassword"
Content-Length: 338


senddoc(): entered
<?xml version="1.0" encoding="utf-8" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:red="RedmapCloudService.Security"><soapenv:Header/><soapenv:Body><red:EncryptPassword><red:username>amit</red:username><red:password>xyz@02</red:password></red:EncryptPassword></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153126";start-info="text/xml"
Server: Microsoft-IIS/8.5
MIME-Version: 1.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE10
Date: Fri, 24 Feb 2017 02:54:16 GMT


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
1d5

chunk size = 469
get_chunk_size returned 469
calling comm_blockread

--uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153126
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";><s:Body><EncryptPasswordResponse xmlns="RedmapCloudService.Security"><EncryptPasswordResult>4C21D20EAE292347399C65478561D85C42C2A3DA9F455AC6</EncryptPasswordResult></EncryptPasswordResponse></s:Body></s:Envelope>
comm_blockread returned 469


get_chunk_size(): entered
3b

chunk size = 59
get_chunk_size returned 59
calling comm_blockread

--uuid:2f99be2e-a139-4be1-b1ef-1544e34a42d6+id=153126--

comm_blockread returned 59


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.33 released 2016-12-06
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0

New XML iconv() objects set, xml_Remote=1208. xml_Local=1208
SetError() #66: XML parse failed at line 2, col 43: not well-formed (invalid token)
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi