G
GEVENS
Can someone please help me to see why this post to XML:arser fails ?
I use it successfully in many ways, but can't figure why this is giving
an error ...
( I have placed xxx on certain parts for privacy).
[DEBUG] MultiThreadedHttpConnectionManager -
HttpConnectionManager.getConnection: config =
HostConfiguration[host=[URL]http://xxx.xxx.xxx.xxx[/URL]], timeout = 0
[DEBUG] MultiThreadedHttpConnectionManager - Allocating new connection,
hostConfig=HostConfiguration[host=[URL]http://xxx.xxx.xxx.xxx[/URL]]
[DEBUG] HttpConnection - Open connection to xxx.xxx.xxx.xxx:80
[DEBUG] header - >> "POST /cgi-bin/ecco/scripts/xxx/xxx/xxxxxx.pl
HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "Content-type: text/xml;
charset=ISO-8859-1[\r][\n]"
[DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0.1[\r][\n]"
[DEBUG] header - >> "Host: xxx.xxx.xxx.xxx[\r][\n]"
[DEBUG] header - >> "Content-Length: 300[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] content - >> "<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>[\n]"
[DEBUG] content - >> "<AvailSearch>[\n]"
[DEBUG] content - >> " <Region>WCA</Region>[\n]"
[DEBUG] content - >> " <CheckInDate>20061111</CheckInDate>[\n]"
[DEBUG] content - >> " <CheckOutDate>20061117</CheckOutDate>[\n]"
[DEBUG] content - >> " <RoomType>DBL</RoomType>[\n]"
[DEBUG] content - >> " <Adults>2</Adults>[\n]"
[DEBUG] content - >> " <Children>1</Children>[\n]"
[DEBUG] content - >> " <ChildAge>12</ChildAge>[\n]"
[DEBUG] content - >> "</AvailSearch>[\n]"
[DEBUG] content - >> "[\n]"
[DEBUG] EntityEnclosingMethod - Request body sent
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Date: Wed, 24 May 2006 07:08:27 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache/2.0.50 (Fedora)[\r][\n]"
[DEBUG] header - << "Connection: close[\r][\n]"
[DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
[DEBUG] header - << "Content-Type: text/html; charset=UTF-8[\r][\n]"
[WARN] HttpMethodBase - Going to buffer response body of large or
unknown size. Using getResponseBodyAsStream instead is recommended.
[DEBUG] HttpMethodBase - Buffering response body
[DEBUG] content - << "1"
[DEBUG] content - << "6"
[DEBUG] content - << "a"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "<h1>Software error:</h1>[\n]"
[DEBUG] content - << "<pre>[\n]"
[DEBUG] content - << "no element found at line 1, column 0, byte
-1:[\n]"
[DEBUG] content - << "15^[\n]"
[DEBUG] content - << "4653088[\n]"
[DEBUG] content - << " at
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/XML/Parser.pm
line 187[\n]"
[DEBUG] content - << "</pre>[\n]"
[DEBUG] content - << "<p>[\n]"
[DEBUG] content - << "For help, please send mail to the webmaster (<a
href="mailto:[email protected]">[email protected]</a>), giving this error message
[\n]"
[DEBUG] content - << "and the time and date of the error.[\n]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "</p>[\n]"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "0"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
I use it successfully in many ways, but can't figure why this is giving
an error ...
( I have placed xxx on certain parts for privacy).
[DEBUG] MultiThreadedHttpConnectionManager -
HttpConnectionManager.getConnection: config =
HostConfiguration[host=[URL]http://xxx.xxx.xxx.xxx[/URL]], timeout = 0
[DEBUG] MultiThreadedHttpConnectionManager - Allocating new connection,
hostConfig=HostConfiguration[host=[URL]http://xxx.xxx.xxx.xxx[/URL]]
[DEBUG] HttpConnection - Open connection to xxx.xxx.xxx.xxx:80
[DEBUG] header - >> "POST /cgi-bin/ecco/scripts/xxx/xxx/xxxxxx.pl
HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "Content-type: text/xml;
charset=ISO-8859-1[\r][\n]"
[DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0.1[\r][\n]"
[DEBUG] header - >> "Host: xxx.xxx.xxx.xxx[\r][\n]"
[DEBUG] header - >> "Content-Length: 300[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] content - >> "<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>[\n]"
[DEBUG] content - >> "<AvailSearch>[\n]"
[DEBUG] content - >> " <Region>WCA</Region>[\n]"
[DEBUG] content - >> " <CheckInDate>20061111</CheckInDate>[\n]"
[DEBUG] content - >> " <CheckOutDate>20061117</CheckOutDate>[\n]"
[DEBUG] content - >> " <RoomType>DBL</RoomType>[\n]"
[DEBUG] content - >> " <Adults>2</Adults>[\n]"
[DEBUG] content - >> " <Children>1</Children>[\n]"
[DEBUG] content - >> " <ChildAge>12</ChildAge>[\n]"
[DEBUG] content - >> "</AvailSearch>[\n]"
[DEBUG] content - >> "[\n]"
[DEBUG] EntityEnclosingMethod - Request body sent
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Date: Wed, 24 May 2006 07:08:27 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache/2.0.50 (Fedora)[\r][\n]"
[DEBUG] header - << "Connection: close[\r][\n]"
[DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
[DEBUG] header - << "Content-Type: text/html; charset=UTF-8[\r][\n]"
[WARN] HttpMethodBase - Going to buffer response body of large or
unknown size. Using getResponseBodyAsStream instead is recommended.
[DEBUG] HttpMethodBase - Buffering response body
[DEBUG] content - << "1"
[DEBUG] content - << "6"
[DEBUG] content - << "a"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "<h1>Software error:</h1>[\n]"
[DEBUG] content - << "<pre>[\n]"
[DEBUG] content - << "no element found at line 1, column 0, byte
-1:[\n]"
[DEBUG] content - << "15^[\n]"
[DEBUG] content - << "4653088[\n]"
[DEBUG] content - << " at
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/XML/Parser.pm
line 187[\n]"
[DEBUG] content - << "</pre>[\n]"
[DEBUG] content - << "<p>[\n]"
[DEBUG] content - << "For help, please send mail to the webmaster (<a
href="mailto:[email protected]">[email protected]</a>), giving this error message
[\n]"
[DEBUG] content - << "and the time and date of the error.[\n]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "</p>[\n]"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "0"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"