Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions in Web Service consumption

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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)?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Will do thanks again Ulf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic