• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting XML from server

 
shrestha hari
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am able to send HASHed XML to server and when I read log files, I am logged in. Now thats a CGI script. That CGI-script should return me XML.

I use PERL code and I get XML back..

# if POST is successful, spit out return XML, else print error
if ($response->is_success) { print "$response->{_content}"; }
else { print "Response = failed\n"; }

Now I use this Java/JSP code, I don't get the reply..
I get Validation Error. But the log says I am validated.Do I need to change browser setting or something??

BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
out.println(line);
}

Am I missing something??

Thanks,
Hari
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is connection in the java code that you posted?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!