Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP fault code question

 
Ramy Nady
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All ,

Am preparing to web service EE6 exam and I have found some question I need to share your ideas.

A client sends a required SOAP header in a SOAP message. The server-side process determines that information in the header is invalid and generates a SOAP fault. What is the appropriate fault code for this type of SOAP fault?

1- Client
2- MustUnderstand

I have read about the difference between those two fault code types at http://www.w3.org/ but am not sure what is the correct answer.

The answer may be client since the message related to client message , and may be MustUnderstand since the server failed to process the MANDATORY header fieldes.

What do you think ?

Thanks in advance for your help.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the node processes the header and determines that information in the header is invalid, it will return soap:Client.

If the node MUST process the header but it doesn't know how to do that or it cannot do what is required (it has no handler to process the mandatory header) it will return, soap:MustUnderstand.
 
Ramy Nady
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Frits Walraven wrote:
If the node MUST process the header but it doesn't know how to do that or it cannot do what is required (it has no handler to process the mandatory header) it will return, soap:MustUnderstand.


I understand that the answer will be soap:MustUnderstand here.

Thanks Frits

 
Somnath Jamdar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frits Walraven wrote:If the node processes the header and determines that information in the header is invalid, it will return soap:Client.



Hi Frits,
soap:Client will be throws when
1] The message was incorrectly formed or
2] Did not contain the appropriate information.

Is this related to soap:Body, soap:Header or to both?



 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this related to soap:Body, soap:Header or to both?

Both.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic