• Post Reply Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException Response 500  RSS feed

 
bhuvan sundar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I try to invoke a web service using HttpURLConnection. I get the following error while reading back the response:

java.io.FileNotFoundException: Response: '500' for url

Code snippet:



Please help me in resolving this soooon...

Thanks in advance..
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which line of code does this happen?
 
bhuvan sundar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error was coming while trying to get input stream from the connection.

I found out the reason for the error. The SOAP action was not being set properly though the statement was



After setting this properly, I got the response.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!