當前位置: 首頁>>代碼示例>>Java>>正文


Java Action類代碼示例

本文整理匯總了Java中javax.xml.ws.Action的典型用法代碼示例。如果您正苦於以下問題:Java Action類的具體用法?Java Action怎麽用?Java Action使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Action類屬於javax.xml.ws包,在下文中一共展示了Action類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getUnitsForCluster

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 *
 * @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);
 
開發者ID:roscisz,項目名稱:KernelHive,代碼行數:14,代碼來源:MonitoringClientBean.java

示例2: setValuePropertyComboBoxSize

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 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());
        }
    });
}
 
開發者ID:Theldus,項目名稱:PSE,代碼行數:24,代碼來源:WinPreviewImageController.java

示例3: setWsaActions

import javax.xml.ws.Action; //導入依賴的package包/類
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());
        }
    }
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:25,代碼來源:JavaMethodImpl.java

示例4: addOperationInputExtension

import javax.xml.ws.Action; //導入依賴的package包/類
@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);
        }
    }
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:20,代碼來源:W3CAddressingWSDLGeneratorExtension.java

示例5: addOperationFaultExtension

import javax.xml.ws.Action; //導入依賴的package包/類
@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;
            }
        }
    }
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:24,代碼來源:W3CAddressingWSDLGeneratorExtension.java

示例6: browseFile

import javax.xml.ws.Action; //導入依賴的package包/類
@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);
    }
}
 
開發者ID:MarkXLII,項目名稱:subtitle-studio,代碼行數:26,代碼來源:Creator.java

示例7: gotTheFile

import javax.xml.ws.Action; //導入依賴的package包/類
@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);
    }
}
 
開發者ID:MarkXLII,項目名稱:subtitle-studio,代碼行數:21,代碼來源:Creator.java

示例8: timbraEnviaCFDIxp

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:luislaredovelazquez,項目名稱:ERP-en-Java,代碼行數:30,代碼來源:InterconectaWs.java

示例9: timbraEnviaCFDIBytes

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:luislaredovelazquez,項目名稱:ERP-en-Java,代碼行數:30,代碼來源:InterconectaWs.java

示例10: cancelaCFDI32

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:luislaredovelazquez,項目名稱:ERP-en-Java,代碼行數:30,代碼來源:InterconectaWs.java

示例11: timbraEnviaCFDIReexpide

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:luislaredovelazquez,項目名稱:ERP-en-Java,代碼行數:30,代碼來源:InterconectaWs.java

示例12: buscaEventos

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:wmixvideo,項目名稱:correios,代碼行數:30,代碼來源:Service.java

示例13: buscaEventosLista

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:wmixvideo,項目名稱:correios,代碼行數:30,代碼來源:Service.java

示例14: rastroJson

import javax.xml.ws.Action; //導入依賴的package包/類
/**
 * 
 * @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);
 
開發者ID:wmixvideo,項目名稱:correios,代碼行數:30,代碼來源:Service.java

示例15: create

import javax.xml.ws.Action; //導入依賴的package包/類
@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;
}
 
開發者ID:cloudsoft,項目名稱:winrm4j,代碼行數:21,代碼來源:WinRm.java


注:本文中的javax.xml.ws.Action類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。