• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Soap Request Response

 
Fred Brillante
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm reusing some code I used for a class a while back.

For some reason everytime I try submit a soap request to either http://www.webservicex.net/barcode.asmx or http://www.webservicex.net/genericbarcode.asmx I get a 500 error.

When I point it at http://www.webservicex.net/stockquote.asmx it works fine and I get an xml response back.
The webservice should be responding with base64 image.


 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
500 is of course a generic server error code. Perhaps the server has a problem?

If this was my problem I would use SOAPui or TCPMON to look at the exact text of the request you are sending - it could be something obvious.

Bill
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use [ code ] tags please.

You mentioned 3 services, 2 which fail, 1 which does not.

Maybe your input(request) is incorrect on the failures and the server is blowing up.

And yes, 500 means the processing application died somewhere (normally an unhandled exception)

WP
 
Fred Brillante
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I found one error I had an extra forward slash after http://www.webserviceX.NET/
Now that it is responding I found that the base64 seems to be so large that it has a hard time processing it.
It works fine when I reduce the number of characters. Is there a limit to outputstream or url connection?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic