Boolean soapActionRequired = soapOperation.getSoapActionRequired(); String soapActionRequiredString = soapActionRequired == null ? null : soapActionRequired.toString(); soapOperation.getSoapActionURI(), pw); DOMUtils.printAttribute(SOAP12Constants.ATTR_SOAP_ACTION_REQUIRED, pw); DOMUtils.printAttribute(SOAP12Constants.ATTR_STYLE, soapOperation.getStyle(), pw); Boolean required = soapOperation.getRequired();
if (soapActionURI != null) soapOperation.setSoapActionURI(soapActionURI); soapOperation.setSoapActionRequired(soapActionRequired); soapOperation.setStyle(style); soapOperation.setRequired(new Boolean(requiredStr));
operation.setName(new QName(wsdlPortType.getQName().getNamespaceURI(), wsdlOperation.getName())); if (wsdlSoapOperation != null) { operation.setSoapAction(wsdlSoapOperation.getSoapActionURI()); operation.setStyle(getStyle(wsdlSoapOperation.getStyle())); } else { operation.setSoapAction("");
/** * Get the Soap Action URI from the operation's soap:operation extensiblity element. * * @param operation * A WSDL Operation. * @return Soap action URI as string, null if not defined. */ protected static String getSOAPAction( BindingOperation operation ) { ExtensibilityElement e = findExtensibilityElement( operation, SOAP_OPERATION_ELEMENT_NAME ); if ( e != null ) { if ( e instanceof SOAP12Operation ) { return ( (SOAP12Operation) e ).getSoapActionURI(); } else { return ( (SOAPOperation) e ).getSoapActionURI(); } } return null; }
protected void populateSoapOperation(SOAP12Operation soapOperation, BindingOperation bindingOperation) throws WSDLException { String bindingOperationName = bindingOperation.getName(); String soapAction = getSoapActions().getProperty(bindingOperationName, ""); soapOperation.setSoapActionURI(soapAction); }
/** * Get the soapAction value for a given operation. * * @param operation The WSDL BindingOperation. * @return the soapAction value if it exists. */ public static String getSoapAction(final BindingOperation operation) { String soapActionUri = ""; if (operation != null) { List<ExtensibilityElement> extElements = operation.getExtensibilityElements(); for (ExtensibilityElement extElement : extElements) { if (extElement instanceof SOAPOperation) { soapActionUri = ((SOAPOperation) extElement).getSoapActionURI(); break; } else if (extElement instanceof SOAP12Operation) { SOAP12Operation soapOperation = ((SOAP12Operation) extElement); Boolean soapActionRequired = soapOperation.getSoapActionRequired(); if ((soapActionRequired == null) || soapActionRequired) { soapActionUri = soapOperation.getSoapActionURI(); } break; } } } return soapActionUri; }
/** * A util method that returns the SOAP style included in the binding * operation * * @param bindingOp */ private String getSOAPStyle(BindingOperation bindingOp) { List extensibilityElements = bindingOp.getExtensibilityElements(); for (int i = 0; i < extensibilityElements.size(); i++) { Object extElement = extensibilityElements.get(i); if (extElement instanceof SOAPOperation) { return ((SOAPOperation) extElement).getStyle(); } else if (extElement instanceof SOAP12Operation) { return ((SOAP12Operation) extElement).getStyle(); } } return null; }
AxisBindingOperation axisBindingOperation = (AxisBindingOperation) description; String style = soapOperation.getStyle(); if (style != null) { axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); String soapActionURI = soapOperation.getSoapActionURI();
/** * Returns the SOAP action related to an operation, or null if not specified. */ private String getSoapAction(BindingOperation bindingOperation) { List extensions = bindingOperation.getExtensibilityElements(); for (Object extension : extensions) { if (extension instanceof SOAPOperation) { return ((SOAPOperation) extension).getSoapActionURI(); } if (extension instanceof SOAP12Operation) { return ((SOAP12Operation) extension).getSoapActionURI(); } } return null; }
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPOperation} has been created. * * <p>Default implementation sets {@code SOAPAction} to the corresponding {@link * #setSoapActions(java.util.Properties) soapActions} property, and defaults to "". * * @param soapOperation the WSDL4J {@code SOAPOperation} * @param bindingOperation the WSDL4J {@code BindingOperation} * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPOperation#setSoapActionURI(String) * @see #setSoapActions(java.util.Properties) */ protected void populateSoapOperation(SOAP12Operation soapOperation, BindingOperation bindingOperation) throws WSDLException { String bindingOperationName = bindingOperation.getName(); String soapAction = getSoapActions().getProperty(bindingOperationName, ""); soapOperation.setSoapActionURI(soapAction); }
/** * Get the soapAction value for a given operation. * * @param operation The WSDL BindingOperation. * @return the soapAction value if it exists. */ public static String getSoapAction(final BindingOperation operation) { String soapActionUri = ""; if (operation != null) { List<ExtensibilityElement> extElements = operation.getExtensibilityElements(); for (ExtensibilityElement extElement : extElements) { if (extElement instanceof SOAPOperation) { soapActionUri = ((SOAPOperation) extElement).getSoapActionURI(); break; } else if (extElement instanceof SOAP12Operation) { SOAP12Operation soapOperation = ((SOAP12Operation) extElement); Boolean soapActionRequired = soapOperation.getSoapActionRequired(); if ((soapActionRequired == null) || soapActionRequired) { soapActionUri = soapOperation.getSoapActionURI(); } break; } } } return soapActionUri; }
/** * A util method that returns the SOAP style included in the binding * operation * * @param bindingOp */ private String getSOAPStyle(BindingOperation bindingOp) { List extensibilityElements = bindingOp.getExtensibilityElements(); for (int i = 0; i < extensibilityElements.size(); i++) { Object extElement = extensibilityElements.get(i); if (extElement instanceof SOAPOperation) { return ((SOAPOperation) extElement).getStyle(); } else if (extElement instanceof SOAP12Operation) { return ((SOAP12Operation) extElement).getStyle(); } } return null; }
Boolean soapActionRequired = soapOperation.getSoapActionRequired(); String soapActionRequiredString = soapActionRequired == null ? null : soapActionRequired.toString(); soapOperation.getSoapActionURI(), pw); DOMUtils.printAttribute(SOAP12Constants.ATTR_SOAP_ACTION_REQUIRED, pw); DOMUtils.printAttribute(SOAP12Constants.ATTR_STYLE, soapOperation.getStyle(), pw); Boolean required = soapOperation.getRequired();
AxisBindingOperation axisBindingOperation = (AxisBindingOperation) description; String style = soapOperation.getStyle(); if (style != null) { axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); String soapActionURI = soapOperation.getSoapActionURI();
protected String getSOAPAction(String operationName) { Binding binding = wsBinding.getBinding(); if (binding != null) { for (Object o : binding.getBindingOperations()) { BindingOperation bop = (BindingOperation)o; if (bop.getName().equalsIgnoreCase(operationName)) { for (Object o2 : bop.getExtensibilityElements()) { if (o2 instanceof SOAPOperation) { return ((SOAPOperation)o2).getSoapActionURI(); } else if (o2 instanceof SOAP12Operation) { return ((SOAP12Operation)o2).getSoapActionURI(); } } } } } return null; }
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPOperation} has been created. * * <p>Default implementation sets {@code SOAPAction} to the corresponding {@link * #setSoapActions(java.util.Properties) soapActions} property, and defaults to "". * * @param soapOperation the WSDL4J {@code SOAPOperation} * @param bindingOperation the WSDL4J {@code BindingOperation} * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPOperation#setSoapActionURI(String) * @see #setSoapActions(java.util.Properties) */ protected void populateSoapOperation(SOAP12Operation soapOperation, BindingOperation bindingOperation) throws WSDLException { String bindingOperationName = bindingOperation.getName(); String soapAction = getSoapActions().getProperty(bindingOperationName, ""); soapOperation.setSoapActionURI(soapAction); }
if (soapActionURI != null) soapOperation.setSoapActionURI(soapActionURI); soapOperation.setSoapActionRequired(soapActionRequired); soapOperation.setStyle(style); soapOperation.setRequired(new Boolean(requiredStr));
currentOperationStyle = ((SOAPOperation) element).getStyle(); } else if (element instanceof SOAP12Operation) { currentOperationStyle = ((SOAP12Operation) element).getStyle();
} else if (extensibilityElement instanceof SOAP12Operation) { SOAP12Operation soap12Operation = (SOAP12Operation) extensibilityElement; String soapActionUri = soap12Operation.getSoapActionURI(); operationPolicy.setOperationAction(soapActionUri); operationPolicy.setSoapMessageVersionNamespace(WSSConstants.NS_SOAP12);
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPOperation} has been created. * <p/> * Default implementation sets <code>SOAPAction</code> to the corresponding {@link * #setSoapActions(java.util.Properties) soapActions} property, and defaults to "". * * @param soapOperation the WSDL4J <code>SOAPOperation</code> * @param bindingOperation the WSDL4J <code>BindingOperation</code> * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPOperation#setSoapActionURI(String) * @see #setSoapActions(java.util.Properties) */ protected void populateSoapOperation(SOAP12Operation soapOperation, BindingOperation bindingOperation) throws WSDLException { String bindingOperationName = bindingOperation.getName(); String soapAction = getSoapActions().getProperty(bindingOperationName, ""); soapOperation.setSoapActionURI(soapAction); }