private boolean isDocumentBare(Method method) { SOAPBinding ann = method.getAnnotation(SOAPBinding.class); if (ann != null) { return ann.style().equals(SOAPBinding.Style.DOCUMENT) && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE); } ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class); if (ann != null) { return ann.style().equals(SOAPBinding.Style.DOCUMENT) && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE); } return false; }
@Override public Boolean isWrapped() { SOAPBinding ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class); if (ann != null) { return !(ann.parameterStyle().equals(ParameterStyle.BARE) || ann.style().equals(Style.RPC)); } return null; }
@Override public Boolean isWrapped(Method m) { // see if someone overrode the default value if (getServiceFactory().getWrapped() != null) { return getServiceFactory().getWrapped(); } m = getDeclaredMethod(m); SOAPBinding ann = m.getAnnotation(SOAPBinding.class); if (ann != null) { if (ann.style().equals(Style.RPC)) { Message message = new Message("SOAPBinding_MESSAGE_RPC", LOG, m.getName()); throw new Fault(new JaxWsConfigurationException(message)); } return !(ann.parameterStyle().equals(ParameterStyle.BARE)); } return isWrapped(); }
public SOAPBinding.ParameterStyle getSOAPParameterStyle() { if (null != soapBindAnnotation) { return soapBindAnnotation.parameterStyle(); } return SOAPBinding.ParameterStyle.WRAPPED; } public String getTargetNamespace() {
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = SOAPBinding.ParameterStyle.WRAPPED; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = SOAPBinding.ParameterStyle.WRAPPED; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = SOAPBinding.ParameterStyle.WRAPPED; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
public javax.jws.soap.SOAPBinding.ParameterStyle getAnnoSoapBindingParameterStyle() { if (soapParameterStyle == null) { if (getAnnoSoapBinding() != null && getAnnoSoapBinding().parameterStyle() != null) { soapParameterStyle = getAnnoSoapBinding().parameterStyle(); } else { soapParameterStyle = SOAPBinding_ParameterStyle_DEFAULT; } } return soapParameterStyle; }
public javax.jws.soap.SOAPBinding.ParameterStyle getAnnoSoapBindingParameterStyle() { if (soapParameterStyle == null) { if (getAnnoSoapBinding() != null && getAnnoSoapBinding().parameterStyle() != null) { soapParameterStyle = getAnnoSoapBinding().parameterStyle(); } else { soapParameterStyle = SOAPBinding_ParameterStyle_DEFAULT; } } return soapParameterStyle; }
public javax.jws.soap.SOAPBinding.ParameterStyle getAnnoSoapBindingParameterStyle() { if (soapBindingParameterStyle == null) { if (getAnnoSoapBinding() != null && getAnnoSoapBinding().parameterStyle() != null) { soapBindingParameterStyle = getAnnoSoapBinding().parameterStyle(); } else { // Per JSR-181 MR Sec 4.7, pg 28: if not specified, use the Type value. soapBindingParameterStyle = getEndpointInterfaceDescription().getSoapBindingParameterStyle(); } } return soapBindingParameterStyle; }
public javax.jws.soap.SOAPBinding.ParameterStyle getAnnoSoapBindingParameterStyle() { if (soapBindingParameterStyle == null) { if (getAnnoSoapBinding() != null && getAnnoSoapBinding().parameterStyle() != null) { soapBindingParameterStyle = getAnnoSoapBinding().parameterStyle(); } else { // Per JSR-181 MR Sec 4.7, pg 28: if not specified, use the Type value. soapBindingParameterStyle = getEndpointInterfaceDescription().getSoapBindingParameterStyle(); } } return soapBindingParameterStyle; }
private boolean isDocumentBare(Method method) { SOAPBinding ann = method.getAnnotation(SOAPBinding.class); if (ann != null) { return ann.style().equals(SOAPBinding.Style.DOCUMENT) && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE); } ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class); if (ann != null) { return ann.style().equals(SOAPBinding.Style.DOCUMENT) && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE); } return false; }
@Override public Boolean isWrapped() { SOAPBinding ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class); if (ann != null) { return !(ann.parameterStyle().equals(ParameterStyle.BARE) || ann.style().equals(Style.RPC)); } return null; }
public static SoapBindingAnnot createFromAnnotation(Annotation annotation) { SoapBindingAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.jws.soap.SOAPBinding) { javax.jws.soap.SOAPBinding sb = (javax.jws.soap.SOAPBinding) annotation; returnAnnot = new SoapBindingAnnot(sb.style(), sb.use(), sb.parameterStyle()); } return returnAnnot; }
public static SoapBindingAnnot createFromAnnotation(Annotation annotation) { SoapBindingAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.jws.soap.SOAPBinding) { javax.jws.soap.SOAPBinding sb = (javax.jws.soap.SOAPBinding) annotation; returnAnnot = new SoapBindingAnnot(sb.style(), sb.use(), sb.parameterStyle()); } return returnAnnot; }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = getDeclaringEndpointInterface().getSoapParameterStyle(); SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = getDeclaringEndpointInterface().getSoapParameterStyle(); SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = getDeclaringEndpointInterface().getSoapParameterStyle(); SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * This is a helper method to create a <code>SoapBindingAnnot</code> since the * * @param soapBinding - <code>SOAPBinding</code> * @return - <code>SoapBindingAnnot</code> * @SOAPBinding annotation may be present on a Type or Method. */ public static SoapBindingAnnot createSoapBindingAnnot(SOAPBinding soapBinding) { SoapBindingAnnot sbAnnot = SoapBindingAnnot.createSoapBindingAnnotImpl(); sbAnnot.setParameterStyle(soapBinding.parameterStyle()); sbAnnot.setStyle(soapBinding.style()); sbAnnot.setUse(soapBinding.use()); return sbAnnot; }
/** * This is a helper method to create a <code>SoapBindingAnnot</code> since the * * @param soapBinding - <code>SOAPBinding</code> * @return - <code>SoapBindingAnnot</code> * @SOAPBinding annotation may be present on a Type or Method. */ public static SoapBindingAnnot createSoapBindingAnnot(SOAPBinding soapBinding) { SoapBindingAnnot sbAnnot = SoapBindingAnnot.createSoapBindingAnnotImpl(); sbAnnot.setParameterStyle(soapBinding.parameterStyle()); sbAnnot.setStyle(soapBinding.style()); sbAnnot.setUse(soapBinding.use()); return sbAnnot; }