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(); }
if (action != null) mySOAPBinding.setSOAPAction(action); methodIsWrapped = methodBinding.parameterStyle().equals( WRAPPED); javaMethod.setBinding(mySOAPBinding);
if (action != null) mySOAPBinding.setSOAPAction(action); methodIsWrapped = methodBinding.parameterStyle().equals( WRAPPED); javaMethod.setBinding(mySOAPBinding);
if (action != null) mySOAPBinding.setSOAPAction(action); methodIsWrapped = methodBinding.parameterStyle().equals( WRAPPED); javaMethod.setBinding(mySOAPBinding);
soapStyle = SOAPStyle.RPC; wrapped = true; if (soapBinding.parameterStyle().equals(ParameterStyle.BARE)) { builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE( classElement.getQualifiedName()), bindingElement); if (wrapped != soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED)) { wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); changed = true;
soapStyle = SOAPStyle.RPC; wrapped = true; if (soapBinding.parameterStyle().equals(ParameterStyle.BARE)) { builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE( classElement.getQualifiedName()), bindingElement); if (wrapped != soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED)) { wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); changed = true;
soapStyle = SOAPStyle.RPC; wrapped = true; if (soapBinding.parameterStyle().equals(ParameterStyle.BARE)) { builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE( classElement.getQualifiedName()), bindingElement); if (wrapped != soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED)) { wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); changed = true;
soapStyle = SOAPStyle.RPC; wrapped = true; if (soapBinding.parameterStyle().equals(ParameterStyle.BARE)) { builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE( classElement.getQualifiedName()), bindingElement); if (wrapped != soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED)) { wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); changed = true;
public void annotate(JavaAnnotatable ja) { JavaMethod method; if (ja instanceof JavaMethod) { method = (JavaMethod) ja; } else { throw new RuntimeException("SOAPBindingAnnotator can only annotate JavaMethod"); } if (method.getSoapStyle() == SOAPBinding.Style.DOCUMENT) { if (!method.isWrapperStyle() && !SOAPBinding.ParameterStyle.BARE.equals(method.getInterface().getSOAPParameterStyle())) { JAnnotation bindingAnnotation = new JAnnotation(SOAPBinding.class); bindingAnnotation.addElement(new JAnnotationElement("parameterStyle", SOAPBinding.ParameterStyle.BARE)); method.addAnnotation("SOAPBinding", bindingAnnotation); } else if (method.isWrapperStyle() && SOAPBinding.ParameterStyle.BARE.equals(method.getInterface().getSOAPParameterStyle())) { JAnnotation bindingAnnotation = new JAnnotation(SOAPBinding.class); bindingAnnotation.addElement(new JAnnotationElement("parameterStyle", SOAPBinding.ParameterStyle.WRAPPED)); method.addAnnotation("SOAPBinding", bindingAnnotation); } } else if (!SOAPBinding.Style.RPC.equals(method.getInterface().getSOAPStyle())) { JAnnotation bindingAnnotation = new JAnnotation(SOAPBinding.class); bindingAnnotation.addElement(new JAnnotationElement("style", SOAPBinding.Style.RPC)); method.addAnnotation("SOAPBinding", bindingAnnotation); } }
protected SOAPBinding popSoapBinding() { if (pushedSoapBinding) soapBindingStack.pop(); SOAPBinding soapBinding = null; if (!soapBindingStack.empty()) { soapBinding = soapBindingStack.peek(); if (soapBinding.style().equals(SOAPBinding.Style.RPC)) { soapStyle = SOAPStyle.RPC; wrapped = true; } else { soapStyle = SOAPStyle.DOCUMENT; wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); } } else { pushedSoapBinding = false; } return soapBinding; }
protected SOAPBinding popSoapBinding() { if (pushedSoapBinding) soapBindingStack.pop(); SOAPBinding soapBinding = null; if (!soapBindingStack.empty()) { soapBinding = soapBindingStack.peek(); if (soapBinding.style().equals(SOAPBinding.Style.RPC)) { soapStyle = SOAPStyle.RPC; wrapped = true; } else { soapStyle = SOAPStyle.DOCUMENT; wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); } } else { pushedSoapBinding = false; } return soapBinding; }
protected SOAPBinding popSoapBinding() { if (pushedSoapBinding) soapBindingStack.pop(); SOAPBinding soapBinding = null; if (!soapBindingStack.empty()) { soapBinding = soapBindingStack.peek(); if (soapBinding.style().equals(SOAPBinding.Style.RPC)) { soapStyle = SOAPStyle.RPC; wrapped = true; } else { soapStyle = SOAPStyle.DOCUMENT; wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); } } else { pushedSoapBinding = false; } return soapBinding; }
protected SOAPBinding popSoapBinding() { if (pushedSoapBinding) soapBindingStack.pop(); SOAPBinding soapBinding = null; if (!soapBindingStack.empty()) { soapBinding = soapBindingStack.peek(); if (soapBinding.style().equals(SOAPBinding.Style.RPC)) { soapStyle = SOAPStyle.RPC; wrapped = true; } else { soapStyle = SOAPStyle.DOCUMENT; wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED); } } else { pushedSoapBinding = false; } return soapBinding; }
@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(); }
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; }