मैं जेएक्स डब्ल्यूएस 2.0 का उपयोग कर एक एसओएपी webservice कॉल कर रहा हूं। त्रुटि के मामले में मैं निम्नलिखित प्रतिक्रिया हो रही है:SOAPFaultException.getFault()। GetDetail() शून्य
<?xml version="1.0"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap- envelope">
<soap:Header/>
<soap:Body>
<soap:Fault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap- envelope" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Exception of type 'blah blah' was thrown.
</soap:Text>
</soap:Reason>
<soap:Node>{SOME URL}</soap:Node>
<detail>
<error>345</error>
<message>Cannot find user. Blah blah</message>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
आप देख सकते हैं उपयोगी त्रुटि विवरण मोड में होने पर:
<soap:Envelope>
<soap:Body>
<soap:Fault>
<detail>
मेरे मुवक्किल में मैं एक SOAPFaultException जो एक है हो रही है SOAPFault वस्तु। लगता है कि SOAPFault ऑब्जेक्ट ऊपर पोस्ट किए गए नोड को याद कर रहा है। SOAPFaultException.getFault()। GetDetail() शून्य है। हालांकि, इसमें साबुन समेत हर दूसरे नोड है: कारण। कोई विचार क्यों यह विस्तार नोड गायब है?
धन्यवाद।