- From: Ramkumar Menon <ramkumar.menon@gmail.com>
- Date: Thu, 9 Nov 2006 19:06:48 -0800
- To: chinthaka@wso2.com
- Cc: www-ws-desc@w3.org
- Message-ID: <22bb8a4e0611091906o3df0eb5cnb5fe4addde9908ff@mail.gmail.com>
Hi Eran, My reply inline. All Gurus, please see my related question too inline. rgds, Ram On 11/9/06, Eran Chinthaka <chinthaka@wso2.com> wrote: > > Hi, > > I have a primitive question on SOAP binding of faults :) > > Assume a fault is defined in an operation, and let's assume the fault is > referring to the element foo in the types section. When a fault occurs > how would be the SOAP message looks like? Where will this Foo element go? SOAP 1.2 states that all application defined elements that give more detail on the error shd go as "Detail Entries" into the "Detail" element information item within the Fault element info item. The specification also clearly says - "When generating a fault, SOAP senders MUST NOT include additional element information items in the SOAP Body . A message whose Body contains a Fault plus additional element information items has no SOAP-defined semantics." Gurus, two questions here. 1) [Section 5.4.5 of SOAP 1.2 Part 1] SOAP 1.2 states the following - "All child *element information items* of the Detail *element information item*are called detail entries ". This means that the "Detail" element information item can have multiple detail entries. Does that mean that the user shd be able to define multiple element info items while describing a Fault in a WSDL Document, or cd the child elements of a fault element in the WSDL be directly copied under the <Detail> element in a SOAP Fault EII ? 2) [Section 5.4.5.1 of SOAP 1.2 Part 1] states that "Each detail entry MAY have a [namespace name] property which has a value, that is the name of the element MAY be namespace qualified." This means that the detail entries may alternatively come from "null/No Namespace". How wd a user be able to model this in a WSDL description ? > From my little WSDL 1.1 knowledge, Foo element comes under Detail > element, when it is a SOAP 1.2 fault. Is this the same for WSDL 2.0? Usage of WSDL 2.0 or 1.1 should not affect the place where application defined elements should go into a SOAP Fault Message, since this is governed by SOAP 1.2 specification. > Where should this be defined? I can not find details on this in any of > the docs of the spec. Seems I am missing something some where :( > > The spec mentions that one can specify about Code and Subcode to be used > inside the binding element. But there is no mentioning anywhere about > the above case. > > If you want me to more clear on this, please look at the GreatH wsdl > ( > http://dev.w3.org/cvsweb//2002/ws/desc/test-suite/documents/good/GreatH-1G/ > ). > When the server throws an InvalidDataFault, how will the SOAP message > coming to the client from it. What should it contain? > > I presume the fault should be bound to Detail element, but like to have > a confirmation on this. > > > Thanks, > Chinthaka > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQFFUiMLjON2uBzUhh8RAqECAJ0T1vEJ5jMRulzLD4rNhphfnGGiqACgj+eV > nbbuYkgVkc4ieqK0KMzBK9s= > =BdAg > -----END PGP SIGNATURE----- > > > > -- Shift to the left, shift to the right! Pop up, push down, byte, byte, byte! -Ramkumar Menon A typical Macroprocessor
Received on Friday, 10 November 2006 03:06:59 UTC