[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML parse failed at line 1, col 0: no element found
Hi Scott,
First of all Thanks a lot for you support.
Now I am able to get the result as expected but on httpapi_debug.txt
file on ifs.
Please find attached the debug file.
I am using the following code for address cleansing
http_xproc( HTTP_POINT_ADDL_HEADER
: %paddr(Add_SOAPACTION) );
rc = http_url_post_xml(%trim(httplink)
: %addr(SOAP) + 2
: %len(SOAP)
: *NULL
: %paddr(Incoming)
: %addr(xmldata)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml; charset=utf-8');
The xmldata is blank I am not getting the result on xmdata variable.
Please suggest what I need to do now.
Thanks & Regards
Jitender Singh.
On Wed, Feb 23, 2011 at 10:55 PM, Scott Klement
<[1]sk@xxxxxxxxxxxxxxxx> wrote:
Hello Jitender,
On 2/23/2011 7:11 AM, jitender singh wrote:
> When i have changed the URL got an 500 HTTP/1.1 500 Internal
Server
> Error .
>
> Please find attached the debug file.
> Please suggest how i can rid off from this error.
500 just means "an error occurred". To find out what the error
was, you
have to look at the document that the web server is sending you.
Note
that the 500 error does *not* mean that you didn't get a response
from
the web server -- you did! You got a SOAP message in response.
I'll copy/paste it from your debug file, and add some line breaks
to
make it easier to read. Here's the result:
<soapenv:Envelope
xmlns:soapenv="[2]http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="[3]http://www.w3.org/2001/XMLSchema"
xmlns:xsi="[4]http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Sender</faultcode>
<faultstring>
Could not retrieve the body of the SOAP request. Error: An
invalid XML character (Unicode: 0x0) was found in the element
content of the document.
</faultstring>
<faultactor></faultactor>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
So, clearly it is receiving the document you are sending, but you
have a
bug somewhere in your code that's inserting an invalid character.
I also noticed that SoapUI capitalizes the <Record> element, but
you
have it in lowercase like <record>. Please change that to a
capital R
(XML is case sensitive.)
Good luck
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[5]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
References
1. mailto:sk@xxxxxxxxxxxxxxxx
2. http://schemas.xmlsoap.org/soap/envelope/
3. http://www.w3.org/2001/XMLSchema
4. http://www.w3.org/2001/XMLSchema-instance
5. http://www.scottklement.com/mailman/listinfo/ftpapi
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V5R4M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: REIMANPUB.COM
DNS server found: 161.230.232.11
DNS server found: 161.230.232.10
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /DataServices/servlet/webservices HTTP/1.1
Host: uspvl3k56-dev.rdigest.com:28080
User-Agent: http-api/1.24
Content-Type: text/xml; charset=utf-8
Content-Length: 451
SOAPAction: "service=Service_test_2"
senddoc(): entered
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><dataset><record><addr_1>6659 Southoaks Cres</addr_1><addr_2></addr_2><addr_3></addr_3><addr_4></addr_4><city>Burnaby</city><state>BC</state><postal_code>V5e4m9</postal_code><country_name>CANADA</country_name></record></dataset></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 687
Date: Thu, 24 Feb 2011 11:38:17 GMT
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 687
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<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:Body><aw:string xmlns:aw="http://businessobjects.com/service/Service_test_2/output" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FL_RESPONSE><DATAFLOW_ID>DQM_trans_address_cleanse_usa_can</DATAFLOW_ID>
<Record><addr_1>The Gemini</addr_1>
<addr_2>6659 Southoaks Cres</addr_2>
<addr_3></addr_3>
<addr_4></addr_4>
<city>Burnaby</city>
<state>BC</state>
<postal_code>V5E 4M9</postal_code>
<country_name>Canada</country_name>
</Record>
</FL_RESPONSE>
</aw:string></soapenv:Body></soapenv:Envelope>
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
- References:
- XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found
- Re: XML parse failed at line 1, col 0: no element found