Package com.leansoft.mwsc.model.annotation

Examples of com.leansoft.mwsc.model.annotation.SOAPBindingAnnotation


       
        return wsa;
    }
   
    private SOAPBindingAnnotation getSOAPBindingAnnotation(Port port) {
        SOAPBindingAnnotation soapBindingAnn = null;
        isDocStyle = port.getStyle() == null || port.getStyle().equals(SOAPStyle.DOCUMENT);
        if(!isDocStyle){
            soapBindingAnn = new SOAPBindingAnnotation();
            soapBindingAnn.setStyle("SOAPBinding.Style.RPC");
            port.setWrapped(true);
        }
        if(isDocStyle){
            boolean first = true;
            boolean isWrapper = true;
            for(Operation operation:port.getOperations()){
                if(first){
                    isWrapper = operation.isWrapped();
                    first = false;
                    continue;
                }
                sameParamStyle = (isWrapper == operation.isWrapped());
                if(!sameParamStyle)
                    break;
            }
            if(sameParamStyle)
                port.setWrapped(isWrapper);
        }
        if(sameParamStyle && !port.isWrapped()){
            if(soapBindingAnn == null)
                soapBindingAnn = new SOAPBindingAnnotation();
            soapBindingAnn.setParameterStyle("SOAPBinding.ParameterStyle.BARE");
        }
       
        return soapBindingAnn;
    }
View Full Code Here


    }
   
    private SOAPBindingAnnotation getSOAPBindingAnnotation(Operation operation) {
        //DOC/BARE
     
      SOAPBindingAnnotation soapBindingAnnotation = null;
     
        if (!sameParamStyle) {
            if(!operation.isWrapped()) {
              soapBindingAnnotation = new SOAPBindingAnnotation();
              soapBindingAnnotation.setParameterStyle("SOAPBinding.ParameterStyle.BARE");
             
            }
        }
        return soapBindingAnnotation;
    }
View Full Code Here

TOP

Related Classes of com.leansoft.mwsc.model.annotation.SOAPBindingAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.