Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a web service client send a fault if an erroneous response is received?  RSS feed

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,

If a web service client sent a request to a web service and received an erroneous response back from the web service, should the client send a fault to the web service?

I have a case where the header I received from the web service is incorrect.  Should I send the web service a fault?

Thanks very much for your time.

-Ravi
 
Tim Moores
Saloon Keeper
Posts: 3828
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A fault (or error) message is sent by the server in case of an incorrect or otherwise unserviceable request, not the other way round. If you think a WS is working incorrectly, you should contact the folks in charge of it with the details.
 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you, Tim.  I thought I had read somewhere that in the case of a Request/Response SOAP message, the client that receives the response should send a fault if the response validation fails.

Thank you for clearing this up.

-Ravi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!