• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Soap Request Response

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic