Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
応答がsoapFaultであるため、この例外が発生します。この例外から xml 応答全体を取得する方法はありますか? この xml inst の重要なコンテンツがこの xml ex.getFaultStringOrReason()の最後にコメントとして含まれているため、これが必要です
ex.getFaultStringOrReason()
ex.getSoapFault().getSource()Source手動で検査またはマーシャリングできる が表示されます。
ex.getSoapFault().getSource()
Source
(たとえば、StringResult のTransformerFactory.newInstance().newTransformer().transform(source, new StringResult()then 呼び出し)toString()
TransformerFactory.newInstance().newTransformer().transform(source, new StringResult()
toString()