• 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

Exceptions in Web Service consumption

 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to web service and have a doubt.

I am invoking a web service by call the exposed method on the stub. Something like,

The service implementation of this method(the WebSservice) throws exceptions(which are, say, uncaught at the impl-end).

My Question is: When i print the stack trace(above), is it possible that i could get a stack dump or atleast an exception message in client code(InBoundFaults)?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All server-side exceptions should result in a SOAPFault being delivered to the client, which at the least includes an error message. I don't think a server-side exception can be delivered to the client, unless you programmed that into the service. (Also remember that web services are platform- and language-neutral, and the concept of exceptions and stack traces may not apply to the server-side implementation.)
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
firstly, many thanks for your reply..


I don't think a server-side exception can be delivered to the client, unless you programmed that into the service.



The Web service that i am calling is implemented in Java,and it does send custom exceptions as SOAPFaults(as specified in WSDL).But the exception that i got was not the one specified in WSDL but(more general) something like:


The point to note is "com.arin.pojo.Logging.java" is not the file that is in the client application.But, is on the server side.

I am finding it hard to believe that this could be a client side error.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it does not sound like a client-side exception. It sounds more like a server configuration problem than anything that's to do with the service itself. You should investigate what this message means, and under which circumstances it can occur.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Will do thanks again Ulf
 
reply
    Bookmark Topic Watch Topic
  • New Topic