File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Servlet Soap Request Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Servlet Soap Request Response" Watch "Servlet Soap Request Response" New topic

Servlet Soap Request Response

Fred Brillante

Joined: Jul 08, 2012
Posts: 2
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 or I get a 500 error.

When I point it at 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

Joined: Mar 22, 2000
Posts: 13037
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.

William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

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)

Fred Brillante

Joined: Jul 08, 2012
Posts: 2
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?
I agree. Here's the link:
subject: Servlet Soap Request Response
It's not a secret anymore!