[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: SetError() #66: XML parse failed
Hi Ronnie
We have been using "<?xml version="1.0" encoding="iso-8859-1"
standalone="no"?>" in our soap data for a while now, and it has not
given us any problems. And its just one of our calls, resently that is
giving this error, the rest are fine. I am also a bit nervous to do
this change, because it has been working before hand, and we been using
it way for a long time now: Here is a log from another call that works
(log is below). You will see its fine, with the "<?xml version="1.0"
encoding="iso-8859-1" standalone="no"?>" it works. Do you maybe know
anything else that I can maybe look at?
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 1
DNS resolver retry : 1
DNS resolver options: x'00000136'
DNS default domain: corporate.columbus.co.za
DNS server found: 172.26.1.98
DNS server found: 172.26.49.60
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /p6devc/service/basicsite/services/soap HTTP/1.1
Host: P6DEVC01:10010
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: WebServiceControl
Content-Length: 925
senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1"
standalone="no"?><soapenv:Envelope
xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/> <soapenv:Body> <Request>
<ParameterSet> <Parameter01></Parameter01>
<Parameter02></Parameter02> <Parameter03></Parameter03>
<Parameter04></Parameter04>
<Parameter05></Parameter05> <Parameter06></Parameter06>
<Parameter07></Parameter07>
<Parameter08></Parameter08> <Parameter09></Parameter09>
<Parameter10></Parameter10> </ParameterSet>
<WebserviceEnv> <EnvironmentID>DEVC</EnvironmentID>
<FunctionID>RUNDETAIL</FunctionID>
<UserID>ADMIN</UserID> <LogKey>201211140036761215</LogKey>
</WebserviceEnv> </Request>
</soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-WSYD-LICENSE: Websydian Relay Service Servlet v2.1 - Copyright (c)
2009 Websydian A/S
X-WSYD-LICENSETYPE: 30
Content-Type: text/xml;charset=ISO-8859-1
Content-Length: 528
Date: Wed, 14 Nov 2012 09:56:03 GMT
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 528
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="[2]http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV
:Body><Response><Control><ProcessStartTime>11:56:03</ProcessStartTime><
ProcessEndTime>11:56:03</ProcessEndTime><NumberofMessages>2</NumberofMe
ssages></Control><MessageDetails><MsgType>WEBSRVCONT</MsgType><MsgDescr
iption>Y</MsgDescription></MessageDetails><MessageDetails><MsgType>RETS
TS</MsgType><MsgDescription>Y</MsgDescription></MessageDetails></Respon
se></SOAP-ENV:Body></SOAP-ENV:Envelope>
http_close(): entered
From: Ronnie <ronnie@xxxxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: 2012/11/14 11:47 AM
Subject: RE: SetError() #66: XML parse failed
Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
__________________________________________________________________
Hi Devlyn.
I suspect you are somehow getting "<?xml version="1.0"
encoding="iso-8859-1" standalone="no"?>" into your soap data.
I don't think that should be in your soap data. Remove that and try
again.
Your soap data should start from "<soapenv:Envelope............"
Ronnie
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[[3]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
vanderWalt.Devlyn@xxxxxxxxxxxxxx
Sent: 14 November 2012 09:00 AM
To: HTTPAPI and FTPAPI Projects
Subject: SetError() #66: XML parse failed
Hi All
Need some help with one error message I am getting:
SetError() #66: XML parse failed at line 1, col 0: no element found
It just seem to get this error for only one of request call, the others
seem to work.
Here is the log file for that call:
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 1
DNS resolver retry : 1
DNS resolver options: x'00000136'
DNS default domain: corporate.columbus.co.za
DNS server found: 172.26.1.98
DNS server found: 172.26.49.60
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /p6devc/service/basicsite/services/soap HTTP/1.1
Host: P6DEVC01:10010
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: WebServiceControl
Content-Length: 963
senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1"
standalone="no"?><soapenv:Envelope xmlns:soapenv="
[4]http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/>
<soapenv:Body> <Request> <ParameterSet>
<Parameter01>B20120615000624724</Parameter01>
<Parameter02>AP1</Parameter02>
<Parameter03>201211140036737256</Parameter03>
<Parameter04></Parameter04>
<Parameter05></Parameter05> <Parameter06></Parameter06>
<Parameter07></Parameter07> <Parameter08></Parameter08>
<Parameter09></Parameter09> <Parameter10></Parameter10>
</ParameterSet> <WebserviceEnv>
<EnvironmentID>DEVC</EnvironmentID> <FunctionID>SMPSCHED</FunctionID>
<UserID>P6USR</UserID> <LogKey>201211140036737256</LogKey>
</WebserviceEnv> </Request> </soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-WSYD-LICENSE: Websydian Relay Service Servlet v2.1 - Copyright (c)
2009
Websydian A/S
X-WSYD-LICENSETYPE: 30
Content-Length: 0
Date: Wed, 14 Nov 2012 06:55:59 GMT
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 0
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
http_close(): entered
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0
SetError() #66: XML parse failed at line 1, col 0: no element found
Enjoy
Devlyn
-----------------------------------------------------------------------
--------------
This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal
Notices available at:
[5]http://www.columbus.co.za/EmailLegalNotice.htm.
-----------------------------------------------------------------------
--------------
This e-mail message has been scanned for Viruses and Content and
cleared by MailMarshal
-----------------------------------------------------------------------
--------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[6]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
__________________________________________________________________
This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal
Notices available at:
[7]http://www.columbus.co.za/EmailLegalNotice.htm.
__________________________________________________________________
This e-mail message has been scanned for Viruses and Content and
cleared by MailMarshal
__________________________________________________________________
References
1. http://schemas.xmlsoap.org/soap/envelope/
2. http://schemas.xmlsoap.org/soap/envelope/
3. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
4. http://schemas.xmlsoap.org/soap/envelope/
5. http://www.columbus.co.za/EmailLegalNotice.htm
6. http://www.scottklement.com/mailman/listinfo/ftpapi
7. http://www.columbus.co.za/EmailLegalNotice.htm
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------