com.sun.xml.internal.ws.api.model.wsdl.WSDLOperation Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.model.wsdl.WSDLOperation.
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 openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #2
Source File: WsaTubeHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #3
Source File: WsaTubeHelper.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #4
Source File: WsaTubeHelper.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #5
Source File: WsaTubeHelper.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #6
Source File: WsaTubeHelper.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #7
Source File: WsaTubeHelper.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #8
Source File: WsaTubeHelper.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * This method gives the Input addressing Action for a message. * It gives the Action set in the wsdl operation for the corresponding payload. * If it is not explicitly set, it gives the soapAction * @param packet * @return input Action */ public String getEffectiveInputAction(Packet packet) { //non-default SOAPAction beomes wsa:action if(packet.soapAction != null && !packet.soapAction.equals("")) { return packet.soapAction; } String action; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } else { action = packet.soapAction; } } else { action = packet.soapAction; } return action; }
Example #9
Source File: WsaTubeHelper.java From hottub with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #10
Source File: WsaTubeHelper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #11
Source File: WsaTubeHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #12
Source File: WsaTubeHelper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #13
Source File: WsaTubeHelper.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #14
Source File: WsaTubeHelper.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #15
Source File: WsaTubeHelper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #16
Source File: WsaTubeHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #17
Source File: WsaTubeHelper.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #18
Source File: WsaTubeHelper.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #19
Source File: WsaTubeHelper.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #20
Source File: WsaTubeHelper.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #21
Source File: WsaTubeHelper.java From hottub with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #22
Source File: WsaTubeHelper.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #23
Source File: WsaTubeHelper.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public String getInputAction(Packet packet) { String action = null; if (wsdlPort != null) { WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if (wsdlOp != null) { WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); action = op.getInput().getAction(); } } return action; }
Example #24
Source File: WsaTubeHelper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public boolean isInputActionDefault(Packet packet) { if (wsdlPort == null) { return false; } WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping(); if(wsdlOp == null) { return false; } WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation(); WSDLOperation op = wbo.getOperation(); return op.getInput().isDefaultAction(); }
Example #25
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 #26
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 #27
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public void addOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); selectAndProcessSubject(operation, WSDLOperation.class, ScopeType.OPERATION, (String)null); LOGGER.exiting(); }
Example #28
Source File: PolicyWSDLGeneratorExtension.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public void addOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); selectAndProcessSubject(operation, WSDLOperation.class, ScopeType.OPERATION, (String)null); LOGGER.exiting(); }
Example #29
Source File: PolicyWSDLGeneratorExtension.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public void addOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); selectAndProcessSubject(operation, WSDLOperation.class, ScopeType.OPERATION, (String)null); LOGGER.exiting(); }
Example #30
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); } }