Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP faults  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
Can SOAP fault messages contain header elements? Why is that SOAP faut message is just sent to the immediate sender and not to the first sender?
Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe a SOAPFault envelope can be sent with headers included, but I don't think I've ever actually seen that happen.
The reason why the fault message is only sent to the immediate sender is that 1) the ultimate receiver may not have any means to send the message to anyone else but the immediate sender (with which it has a TCP/IP/HTTP connection open), and 2) because the fault may be caused by something the intermediary did but that the original sender is not aware of (and can't do anything about it). Remember that the intermediary can (and mostly does, I think) forward the fault message upstream to the previous intermediary, its previous intermediary, and eventually, the original sender.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!