Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Servlet Soap Request Response" Watch "Servlet Soap Request Response" New topic
Author

Servlet Soap Request Response

Fred Brillante
Greenhorn

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 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

Joined: Mar 22, 2000
Posts: 12675
    
    5
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

Java Resources at www.wbrogden.com
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

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

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: http://aspose.com/file-tools
 
subject: Servlet Soap Request Response
 
Similar Threads
unable to connect to .Net web service using axis with java
send SOAP Request without Response
parse the SOAP response XML and display on jsp page
SOAP Fault for SOAP Action property
How to pass complex type parameter in web service while creating it through SAAJ