Java 类javax.xml.ws.Action 实例源码

项目:PSE    文件:WinPreviewImageController.java   
/**
 * Watch for the dimension value changes
 */
@Action
private void setValuePropertyComboBoxSize(){

    cBoxImgSize.valueProperty().addListener(new ChangeListener() {
        @Override
        public void changed(ObservableValue observable, Object oldValue, Object newValue) {
            if(newValue.toString().equals("tamanho original")){
                dimensionImage.setWidth(getImage().getWidth());
                dimensionImage.setHeight(getImage().getHeight());
            }
            else {
                String size [] = newValue.toString().split("x");
                dimensionImage.setWidth(Double.parseDouble(size[0]));
                dimensionImage.setHeight(Double.parseDouble(size[1]));
            }

            System.out.println("Dim: "+ dimensionImage.getWidth() + " " + dimensionImage.getHeight());
        }
    });
}
项目:OpenJSharp    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:OpenJSharp    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    if (a != null && !a.input().equals("")) {
        addAttribute(input, a.input());
    } else {

        String soapAction = method.getBinding().getSOAPAction();
        // in SOAP 1.2 soapAction is optional ...
        if (soapAction == null || soapAction.equals("")) {
            //hack: generate default action for interop with .Net3.0 when soapAction is non-empty
            String defaultAction = getDefaultAction(method);
            addAttribute(input, defaultAction);
        }
    }
}
项目:OpenJSharp    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
项目:openjdk-jdk10    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:openjdk-jdk10    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    if (a != null && !a.input().equals("")) {
        addAttribute(input, a.input());
    } else {

        String soapAction = method.getBinding().getSOAPAction();
        // in SOAP 1.2 soapAction is optional ...
        if (soapAction == null || soapAction.equals("")) {
            //hack: generate default action for interop with .Net3.0 when soapAction is non-empty
            String defaultAction = getDefaultAction(method);
            addAttribute(input, defaultAction);
        }
    }
}
项目:openjdk-jdk10    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
项目:openjdk9    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:openjdk9    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    if (a != null && !a.input().equals("")) {
        addAttribute(input, a.input());
    } else {

        String soapAction = method.getBinding().getSOAPAction();
        // in SOAP 1.2 soapAction is optional ...
        if (soapAction == null || soapAction.equals("")) {
            //hack: generate default action for interop with .Net3.0 when soapAction is non-empty
            String defaultAction = getDefaultAction(method);
            addAttribute(input, defaultAction);
        }
    }
}
项目:openjdk9    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
项目:subtitle-studio    文件:Creator.java   
@Action
public void browseFile() {
    JFileChooser fc = new JFileChooser();
    fc.addChoosableFileFilter(new FileNameExtensionFilter("Supported Video Files", VLC_SDK.getSupportedFileExtensions()));
    fc.showOpenDialog(jDialogCreatorFileChooser);
    File ff = fc.getSelectedFile();
    if (ff != null) {
        haveFile = true;
        filePath = ff.getAbsolutePath();
        fileName = ff.getName();
        fileName = fileName.substring(0, Creator.fileName.length() - 4);
        jTextFieldTitle.setText(fileName);
        jLabelCreatorFileName.setText(Creator.fileName);
        String temp = "", temp2 = "\\";
        for (int i = 0; i < Creator.filePath.length(); i++) {
            temp = temp + Creator.filePath.charAt(i);
            if (Creator.filePath.charAt(i) == temp2.charAt(0)) {
                temp = temp + temp2.charAt(0);
            }
        }
        output = temp.substring(0, temp.length() - 3);
        output = Creator.output + "srt";
        jLabelCreatorOutputLocation.setText(Creator.output);
    }
}
项目:subtitle-studio    文件:Creator.java   
@Action
public void gotTheFile() {
    if (!Creator.haveFile) {
        browseFile();
    } else {
        if (!jTextFieldTitle.getText().equals("")) {
            Creator.title = jTextFieldTitle.getText();
        }
        if (!jTextFieldArtist.getText().equals("")) {
            Creator.artist = jTextFieldArtist.getText();
        }
        if (!jTextFieldAlbum.getText().equals("")) {
            Creator.album = jTextFieldAlbum.getText();
        }
        jDialogCreatorFileChooser.dispose();
        jDialogCreatorRawCaptions.setSize(400, 600);
        jDialogCreatorRawCaptions.setLocationRelativeTo(jDialogCreatorFileChooser);
        jDialogCreatorRawCaptions.setVisible(true);
    }
}
项目:ERP-en-Java    文件:InterconectaWs.java   
/**
 * 
 * @param llavePrivadaEmisorPassword
 * @param xmlCFDI
 * @param llavePrivadaEmisor
 * @param userPassword
 * @param user
 * @param certificadoEmisor
 * @return
 *     returns com.tsp.interconecta.ws.WsGenericResp
 */
@WebMethod(action = "timbraEnviaCFDIxp")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "timbraEnviaCFDIxp", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIxp")
@ResponseWrapper(localName = "timbraEnviaCFDIxpResponse", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIxpResponse")
@Action(input = "timbraEnviaCFDIxp", output = "http://ws.interconecta.tsp.com/InterconectaWs/timbraEnviaCFDIxpResponse")
public WsGenericResp timbraEnviaCFDIxp(
    @WebParam(name = "user", targetNamespace = "")
    String user,
    @WebParam(name = "userPassword", targetNamespace = "")
    String userPassword,
    @WebParam(name = "certificadoEmisor", targetNamespace = "")
    byte[] certificadoEmisor,
    @WebParam(name = "llavePrivadaEmisor", targetNamespace = "")
    byte[] llavePrivadaEmisor,
    @WebParam(name = "llavePrivadaEmisorPassword", targetNamespace = "")
    String llavePrivadaEmisorPassword,
    @WebParam(name = "xmlCFDI", targetNamespace = "")
    String xmlCFDI);
项目:ERP-en-Java    文件:InterconectaWs.java   
/**
 * 
 * @param bytesXmlCFDI
 * @param llavePrivadaEmisorPassword
 * @param llavePrivadaEmisor
 * @param userPassword
 * @param user
 * @param certificadoEmisor
 * @return
 *     returns com.tsp.interconecta.ws.WsGenericResp
 */
@WebMethod(action = "timbraEnviaCFDIBytes")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "timbraEnviaCFDIBytes", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIBytes")
@ResponseWrapper(localName = "timbraEnviaCFDIBytesResponse", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIBytesResponse")
@Action(input = "timbraEnviaCFDIBytes", output = "http://ws.interconecta.tsp.com/InterconectaWs/timbraEnviaCFDIBytesResponse")
public WsGenericResp timbraEnviaCFDIBytes(
    @WebParam(name = "user", targetNamespace = "")
    String user,
    @WebParam(name = "userPassword", targetNamespace = "")
    String userPassword,
    @WebParam(name = "certificadoEmisor", targetNamespace = "")
    byte[] certificadoEmisor,
    @WebParam(name = "llavePrivadaEmisor", targetNamespace = "")
    byte[] llavePrivadaEmisor,
    @WebParam(name = "llavePrivadaEmisorPassword", targetNamespace = "")
    String llavePrivadaEmisorPassword,
    @WebParam(name = "bytesXmlCFDI", targetNamespace = "")
    byte[] bytesXmlCFDI);
项目:ERP-en-Java    文件:InterconectaWs.java   
/**
 * 
 * @param llavePrivadaEmisorPassword
 * @param xmlCFDI
 * @param llavePrivadaEmisor
 * @param userPassword
 * @param user
 * @param certificadoEmisor
 * @return
 *     returns com.tsp.interconecta.ws.WsGenericResp
 */
@WebMethod(action = "cancelaCFDI32")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "cancelaCFDI32", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.CancelaCFDI32")
@ResponseWrapper(localName = "cancelaCFDI32Response", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.CancelaCFDI32Response")
@Action(input = "cancelaCFDI32", output = "http://ws.interconecta.tsp.com/InterconectaWs/cancelaCFDI32Response")
public WsGenericResp cancelaCFDI32(
    @WebParam(name = "user", targetNamespace = "")
    String user,
    @WebParam(name = "userPassword", targetNamespace = "")
    String userPassword,
    @WebParam(name = "certificadoEmisor", targetNamespace = "")
    byte[] certificadoEmisor,
    @WebParam(name = "llavePrivadaEmisor", targetNamespace = "")
    byte[] llavePrivadaEmisor,
    @WebParam(name = "llavePrivadaEmisorPassword", targetNamespace = "")
    String llavePrivadaEmisorPassword,
    @WebParam(name = "xmlCFDI", targetNamespace = "")
    String xmlCFDI);
项目:ERP-en-Java    文件:InterconectaWs.java   
/**
 * 
 * @param llavePrivadaEmisorPassword
 * @param xmlCFDI
 * @param llavePrivadaEmisor
 * @param userPassword
 * @param user
 * @param certificadoEmisor
 * @return
 *     returns com.tsp.interconecta.ws.WsGenericResp
 */
@WebMethod(action = "timbraEnviaCFDIReexpide")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "timbraEnviaCFDIReexpide", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIReexpide")
@ResponseWrapper(localName = "timbraEnviaCFDIReexpideResponse", targetNamespace = "http://ws.interconecta.tsp.com/", className = "com.tsp.interconecta.ws.TimbraEnviaCFDIReexpideResponse")
@Action(input = "timbraEnviaCFDIReexpide", output = "http://ws.interconecta.tsp.com/InterconectaWs/timbraEnviaCFDIReexpideResponse")
public WsGenericResp timbraEnviaCFDIReexpide(
    @WebParam(name = "user", targetNamespace = "")
    String user,
    @WebParam(name = "userPassword", targetNamespace = "")
    String userPassword,
    @WebParam(name = "certificadoEmisor", targetNamespace = "")
    byte[] certificadoEmisor,
    @WebParam(name = "llavePrivadaEmisor", targetNamespace = "")
    byte[] llavePrivadaEmisor,
    @WebParam(name = "llavePrivadaEmisorPassword", targetNamespace = "")
    String llavePrivadaEmisorPassword,
    @WebParam(name = "xmlCFDI", targetNamespace = "")
    String xmlCFDI);
项目:lookaside_java-1.8.0-openjdk    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    if (a != null && !a.input().equals("")) {
        addAttribute(input, a.input());
    } else {

        String soapAction = method.getBinding().getSOAPAction();
        // in SOAP 1.2 soapAction is optional ...
        if (soapAction == null || soapAction.equals("")) {
            //hack: generate default action for interop with .Net3.0 when soapAction is non-empty
            String defaultAction = getDefaultAction(method);
            addAttribute(input, defaultAction);
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
项目:correios    文件:Service.java   
/**
 * 
 * @param senha
 * @param tipo
 * @param resultado
 * @param lingua
 * @param usuario
 * @param objetos
 * @return
 *     returns br.com.correios.webservice.rastro.Sroxml
 */
@WebMethod(action = "buscaEventos")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "buscaEventos", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.BuscaEventos")
@ResponseWrapper(localName = "buscaEventosResponse", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.BuscaEventosResponse")
@Action(input = "buscaEventos", output = "http://resource.webservice.correios.com.br/Service/buscaEventosResponse")
Sroxml buscaEventos(
        @WebParam(name = "usuario", targetNamespace = "")
                String usuario,
        @WebParam(name = "senha", targetNamespace = "")
                String senha,
        @WebParam(name = "tipo", targetNamespace = "")
                String tipo,
        @WebParam(name = "resultado", targetNamespace = "")
                String resultado,
        @WebParam(name = "lingua", targetNamespace = "")
                String lingua,
        @WebParam(name = "objetos", targetNamespace = "")
                String objetos);
项目:correios    文件:Service.java   
/**
 * 
 * @param senha
 * @param tipo
 * @param resultado
 * @param lingua
 * @param usuario
 * @param objetos
 * @return
 *     returns br.com.correios.webservice.rastro.Sroxml
 */
@WebMethod(action = "buscaEventosLista")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "buscaEventosLista", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.BuscaEventosLista")
@ResponseWrapper(localName = "buscaEventosListaResponse", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.BuscaEventosListaResponse")
@Action(input = "buscaEventosLista", output = "http://resource.webservice.correios.com.br/Service/buscaEventosListaResponse")
Sroxml buscaEventosLista(
        @WebParam(name = "usuario", targetNamespace = "")
                String usuario,
        @WebParam(name = "senha", targetNamespace = "")
                String senha,
        @WebParam(name = "tipo", targetNamespace = "")
                String tipo,
        @WebParam(name = "resultado", targetNamespace = "")
                String resultado,
        @WebParam(name = "lingua", targetNamespace = "")
                String lingua,
        @WebParam(name = "objetos", targetNamespace = "")
                List<String> objetos);
项目:correios    文件:Service.java   
/**
 * 
 * @param senha
 * @param tipo
 * @param resultado
 * @param lingua
 * @param usuario
 * @param objetos
 * @return
 *     returns java.lang.String
 */
@WebMethod(operationName = "RastroJson", action = "RastroJson")
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "RastroJson", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.RastroJson")
@ResponseWrapper(localName = "RastroJsonResponse", targetNamespace = "http://resource.webservice.correios.com.br/", className = "br.com.correios.webservice.rastro.RastroJsonResponse")
@Action(input = "RastroJson", output = "http://resource.webservice.correios.com.br/Service/RastroJsonResponse")
String rastroJson(
        @WebParam(name = "usuario", targetNamespace = "")
                String usuario,
        @WebParam(name = "senha", targetNamespace = "")
                String senha,
        @WebParam(name = "tipo", targetNamespace = "")
                String tipo,
        @WebParam(name = "resultado", targetNamespace = "")
                String resultado,
        @WebParam(name = "lingua", targetNamespace = "")
                String lingua,
        @WebParam(name = "objetos", targetNamespace = "")
                String objetos);
项目:winrm4j    文件:WinRm.java   
@WebMethod(operationName = "Create", action = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Create")
@Action(input = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Create", output = "http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse")
@WebResult(name = "ResourceCreated", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/09/transfer", partName = "ResourceCreated")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public ResourceCreated create(
    @WebParam(name = "Shell", targetNamespace = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell")
    Shell shell,
    @WebParam(name = "ResourceURI", targetNamespace = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", header = true)
    String resourceURI,
    @WebParam(name = "MaxEnvelopeSize", targetNamespace = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", header = true)
    int maxEnvelopeSize,
    @WebParam(name = "OperationTimeout", targetNamespace = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", header = true)
    String operationTimeout,
    @WebParam(name = "Locale", targetNamespace = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", header = true)
    Locale locale,
    @WebParam(name = "OptionSet", targetNamespace = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", header = true)
    OptionSetType optionSet
) {
    return null;
}
项目:infobip-open-jdk-8    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:infobip-open-jdk-8    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    if (a != null && !a.input().equals("")) {
        addAttribute(input, a.input());
    } else {

        String soapAction = method.getBinding().getSOAPAction();
        // in SOAP 1.2 soapAction is optional ...
        if (soapAction == null || soapAction.equals("")) {
            //hack: generate default action for interop with .Net3.0 when soapAction is non-empty
            String defaultAction = getDefaultAction(method);
            addAttribute(input, defaultAction);
        }
    }
}
项目:infobip-open-jdk-8    文件:W3CAddressingWSDLGeneratorExtension.java   
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
项目:OLD-OpenJDK8    文件:JavaMethodImpl.java   
private void setWsaActions(MetadataReader metadataReader) {
    Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
    if(action != null) {
        inputAction = action.input();
        outputAction = action.output();
    }

    //@Action(input) =="", get it from @WebMethod(action)
    WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
    soapAction = "";
    if (webMethod != null )
        soapAction = webMethod.action();
    if(!soapAction.equals("")) {
        //non-empty soapAction
        if(inputAction.equals(""))
            // set input action to non-empty soapAction
            inputAction = soapAction;
        else if(!inputAction.equals(soapAction)){
            //both are explicitly set via annotations, make sure @Action == @WebMethod.action
            //http://java.net/jira/browse/JAX_WS-1108
          //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
        }
    }
}
项目:anythingworks    文件:SoapExceptionThrower.java   
/**
 * 
 * @param exceptionType
 * @param exceptionChance
 * @param apiKey
 * @return
 *     returns java.lang.String
 * @throws SoapWebServiceException
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "throwException", targetNamespace = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/", className = "com.optimaize.anythingworks.exampleproject.clientlib.soap.services.development.exceptionthrower.wsdl.ThrowException")
@ResponseWrapper(localName = "throwExceptionResponse", targetNamespace = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/", className = "com.optimaize.anythingworks.exampleproject.clientlib.soap.services.development.exceptionthrower.wsdl.ThrowExceptionResponse")
@Action(input = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwExceptionRequest", output = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwExceptionResponse", fault = {
    @FaultAction(className = SoapWebServiceException.class, value = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwException/Fault/SoapWebServiceException")
})
public String throwException(
    @WebParam(name = "apiKey", targetNamespace = "")
    String apiKey,
    @WebParam(name = "exceptionType", targetNamespace = "")
    String exceptionType,
    @WebParam(name = "exceptionChance", targetNamespace = "")
    int exceptionChance)
    throws SoapWebServiceException
;
项目:Shopping-Cart-using-Web-Services    文件:SOAPserverInterface.java   
/**
 * 
 * @param arg3
 * @param arg2
 * @param arg1
 * @param arg0
 * @return
 *     returns java.lang.String
 */
@WebMethod
@WebResult(partName = "return")
@Action(input = "http://service.onlineshop.com/SOAPserverInterface/additemtocartRequest", output = "http://service.onlineshop.com/SOAPserverInterface/additemtocartResponse")
public String additemtocart(
    @WebParam(name = "arg0", partName = "arg0")
    String arg0,
    @WebParam(name = "arg1", partName = "arg1")
    String arg1,
    @WebParam(name = "arg2", partName = "arg2")
    String arg2,
    @WebParam(name = "arg3", partName = "arg3")
    String arg3);
项目:Shopping-Cart-using-Web-Services    文件:SOAPserverInterface.java   
/**
 * 
 * @param arg3
 * @param arg2
 * @param arg1
 * @param arg0
 * @return
 *     returns java.lang.String
 */
@WebMethod
@WebResult(partName = "return")
@Action(input = "http://service.onlineshop.com/SOAPserverInterface/removefromcartRequest", output = "http://service.onlineshop.com/SOAPserverInterface/removefromcartResponse")
public String removefromcart(
    @WebParam(name = "arg0", partName = "arg0")
    String arg0,
    @WebParam(name = "arg1", partName = "arg1")
    String arg1,
    @WebParam(name = "arg2", partName = "arg2")
    String arg2,
    @WebParam(name = "arg3", partName = "arg3")
    String arg3);
项目:Shopping-Cart-using-Web-Services    文件:SOAPserverInterface.java   
/**
 * 
 * @param arg0
 * @return
 *     returns java.lang.String
 */
@WebMethod
@WebResult(partName = "return")
@Action(input = "http://service.onlineshop.com/SOAPserverInterface/viewcartRequest", output = "http://service.onlineshop.com/SOAPserverInterface/viewcartResponse")
public String viewcart(
    @WebParam(name = "arg0", partName = "arg0")
    String arg0);
项目:Shopping-Cart-using-Web-Services    文件:SOAPserverInterface.java   
/**
 * 
 * @param arg0
 * @return
 *     returns java.lang.String
 */
@WebMethod
@WebResult(partName = "return")
@Action(input = "http://service.onlineshop.com/SOAPserverInterface/buyitemsRequest", output = "http://service.onlineshop.com/SOAPserverInterface/buyitemsResponse")
public String buyitems(
    @WebParam(name = "arg0", partName = "arg0")
    String arg0);
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.ClusterDefinition>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getClusters", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetClusters")
@ResponseWrapper(localName = "getClustersResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetClustersResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getClustersRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getClustersResponse")
public List<ClusterDefinition> getClusters();
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.UnitDefinition>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getUnits", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetUnits")
@ResponseWrapper(localName = "getUnitsResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetUnitsResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getUnitsRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getUnitsResponse")
public List<UnitDefinition> getUnits();
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @param arg0
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.UnitDefinition>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getUnitsForCluster", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetUnitsForCluster")
@ResponseWrapper(localName = "getUnitsForClusterResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetUnitsForClusterResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getUnitsForClusterRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getUnitsForClusterResponse")
public List<UnitDefinition> getUnitsForCluster(
        @WebParam(name = "arg0", targetNamespace = "") int arg0);
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @param arg0
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.PreviewObject>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getPreviewData", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetPreviewData")
@ResponseWrapper(localName = "getPreviewDataResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetPreviewDataResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getPreviewDataRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getPreviewDataResponse")
public List<PreviewObject> getPreviewData(
        @WebParam(name = "arg0", targetNamespace = "") int arg0);
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @param arg1
 * @param arg0
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.DeviceDefinition>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getDevices", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetDevices")
@ResponseWrapper(localName = "getDevicesResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetDevicesResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getDevicesRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getDevicesResponse")
public List<DeviceDefinition> getDevices(
        @WebParam(name = "arg0", targetNamespace = "") int arg0,
        @WebParam(name = "arg1", targetNamespace = "") int arg1);
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.monitoring.service.DeviceDefinition>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getAllDevices", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetAllDevices")
@ResponseWrapper(localName = "getAllDevicesResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetAllDevicesResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getAllDevicesRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getAllDevicesResponse")
public List<DeviceDefinition> getAllDevices();
项目:KernelHive    文件:MonitoringClientBean.java   
/**
 *
 * @param arg0
 * @return returns java.lang.String
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getGraphPath", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetGraphPath")
@ResponseWrapper(localName = "getGraphPathResponse", targetNamespace = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.monitoring.service.GetGraphPathResponse")
@Action(input = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getGraphPathRequest", output = "http://monitoring.engine.kernelhive.eti.pg.gda.pl/MonitoringClientBean/getGraphPathResponse")
public String getGraphPath(
        @WebParam(name = "arg0", targetNamespace = "") MonitoredEntity arg0);
项目:KernelHive    文件:ClientBean.java   
/**
 *
 * @param arg0
 * @return returns
 * java.util.List<pl.gda.pg.eti.kernelhive.common.clientService.JobProgress>
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getWorkflowProgress", targetNamespace = "http://engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.clientService.GetWorkflowProgress")
@ResponseWrapper(localName = "getWorkflowProgressResponse", targetNamespace = "http://engine.kernelhive.eti.pg.gda.pl/", className = "pl.gda.pg.eti.kernelhive.common.clientService.GetWorkflowProgressResponse")
@Action(input = "http://engine.kernelhive.eti.pg.gda.pl/ClientBean/getWorkflowProgressRequest", output = "http://engine.kernelhive.eti.pg.gda.pl/ClientBean/getWorkflowProgressResponse")
public List<JobProgress> getWorkflowProgress(
        @WebParam(name = "arg0", targetNamespace = "") Integer arg0);