Hi,
I am using spring-ws-1.5.4 and I have got on a strange behaviour while using a WebServiceTemplate as client.
My WebService is quite small and I am using jaxb2 Marshaller. I am using some Request and Response Validation too.
Everything seems working as expected but the SoapFaultDetail from the SoapFault loaded by SoapFaultClientException is always null.
Debugging SoapFaultClientException or using SoapUI, show me the <detail> value.
Maybe I do not use SoapFaultClientException as it should, but for me it sounds like a bug.
code :
Any Idea?Code:WebServiceTemplate ws = new WebServiceTemplate(); ws.setMarshaller(client.getMarshaller()); ws.setUnmarshaller(client.getUnMarshaller()); try { MyResponse resp = (MyResponse) = ws.marshalSendAndReceive(WS_URI, req); } catch (SoapFaultClientException e) { SoapFault fault = e.getSoapFault(); SoapFaultDetail details = e.getSoapFault().getFaultDetail(); //details always NULL ? Bug? }
Thanks
Guillaume


Reply With Quote