Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

headerFault ?

 
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic