Am Mittwoch, den 05.09.2007, 14:53 -0400 schrieb Glen Mazza: > > - soapFault.addDetail().appendChild(nd); > > + nd = nd.getFirstChild(); > > + soapFault.addDetail(); > >
Oops! Never mind on this one! I just realized the top line above was removed--not added. Glen > I'm not sure of the difference between the JavaSE SOAPFault and CXF's > SoapFault. For SOAPFault, Sun seems to say that the above LOC would > not be allowed[1]: "It is illegal to add a detail when the fault already > contains a detail." > > Still, what does addDetail() do, if you don't supply it an argument--I'm > having trouble locating this method within the CXF codebase so am > confused. > > [1] > http://java.sun.com/javase/6/docs/api/javax/xml/soap/SOAPFault.html#addDetail() > > Regards, > Glen > > > > + while (nd != null) { > > + soapFault.getDetail().appendChild(nd); > > + nd = nd.getNextSibling(); > > + } > > > > } else { > > soapFault.setFaultCode(new > > QName("http://cxf.apache.org/faultcode", "HandlerFault")); > > > >
