Java Code Examples for com.sun.xml.internal.ws.api.model.wsdl.WSDLOperation#getFault()
The following examples show how to use
com.sun.xml.internal.ws.api.model.wsdl.WSDLOperation#getFault() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WsaTubeHelper.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 2
Source File: WsaTubeHelper.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 3
Source File: WsaTubeHelper.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 4
Source File: WsaTubeHelper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 5
Source File: WsaTubeHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 6
Source File: WsaTubeHelper.java From hottub with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 7
Source File: WsaTubeHelper.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }
Example 8
Source File: WsaTubeHelper.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
String getFaultAction(@Nullable WSDLBoundOperation wbo, Packet responsePacket) { String action = AddressingUtils.getAction(responsePacket.getMessage().getHeaders(), addVer, soapVer); if (action != null) { return action; } action = addVer.getDefaultFaultAction(); if (wbo == null) { return action; } try { SOAPMessage sm = responsePacket.getMessage().copy().readAsSOAPMessage(); if (sm == null) { return action; } if (sm.getSOAPBody() == null) { return action; } if (sm.getSOAPBody().getFault() == null) { return action; } Detail detail = sm.getSOAPBody().getFault().getDetail(); if (detail == null) { return action; } String ns = detail.getFirstChild().getNamespaceURI(); String name = detail.getFirstChild().getLocalName(); WSDLOperation o = wbo.getOperation(); WSDLFault fault = o.getFault(new QName(ns, name)); if (fault == null) { return action; } action = fault.getAction(); return action; } catch (SOAPException e) { throw new WebServiceException(e); } }