• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

headerFault ?

 
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When there is a fault related to the body or there is a processing error on the server side, the server is expected to supply a SOAPFault in the body, and no other body elements should be present. The fault code will then indicate if it is a client or server fault.

All processing problems related to the header should not be refected as a SOAPFault in the body, but via the header.

To support this, you can define in WSDL , besides the soap:header, also the soap:headerFault element. In case there is a processing error with the header, the reply will contain the message as indicated by the soap:headerFault.

My questions:

1) When the mustUnderstand attribute is set and the server cannot understand the header a SOAPFault is supplied in the body. Why is this ? It seems logical to me that this should be a headerFault...

2) How is the client suposed to know that there was a problem processing a header ? Off course, this information is present in the WSDL, but there is no indication in the message itself that there was an error processing the header. You cannot distinguish a fault header from a normal header when looknig just at the SOAP message, or am I missing something ?

3) What are the exact rules for the headerFault ? for example; when an headerFault takes place, may the body still contain other data ?

I inspected the BP: http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16665448 and the WSDL spec: http://www.w3.org/TR/wsdl#_soap:header

But they do not supply this kind of information unfortunately....
 
Jim Janssens
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I was a bit to fast on this one.

When there is a problem processing a header, tere is a SOAPFault present in the body but it may contain NO detail element when the problem is header related. Also, when the header in question has an actor attr specified, the actor element in the SOAPFault will contain this value. So you can determine if there is a fault related to the header by examing the SOAP message.

However, does this mean that in case a soap:headerFault is specified the message specified by that headerFault is present in the reply header ?
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic