@WebMethod(operationName = "detenerServidor") @Oneway public void detenerServidor(@WebParam(name = "id") String id) { DB base_datos = new DB(); base_datos.conectar(); base_datos.eliminar(Integer.parseInt(id)); if (Util.docker) { Process proceso; Runtime shell = Runtime.getRuntime(); try { // COMANDO DOCKER // docker run -d --rm -p [PuertoPHP]:80 -p [PuertoSQL]:3306 --name=server[ID] xxdrackleroxx/test:1.0 proceso = shell.exec("docker stop -t 0 server" + id); } catch (IOException ex) { System.out.println("[ERROR] Problema con el id obtenido"); } } }
@Oneway public void doit() { try { value = (String)(new InitialContext().lookup("java:comp/env/message")); if (!"Ahoj".equals(value)) { ex = new RuntimeException("JNDI lookup in @Oneway method failed"); } } catch (final NamingException e) { ex = new RuntimeException("JNDI lookup in @Oneway method failed", e); } }
protected void verifyImplAnnotations(TypeElement d) { for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) { checkForInvalidImplAnnotation(method, WebMethod.class); checkForInvalidImplAnnotation(method, Oneway.class); checkForInvalidImplAnnotation(method, WebResult.class); for (VariableElement param : method.getParameters()) { checkForInvalidImplAnnotation(param, WebParam.class); } } }
@Oneway @RequestWrapper(localName = "deleteInvoice", targetNamespace = "http://soapui.cookbook.samples/schema/invoice", className = "ws.invoice.v3.InvoiceRefType") @WebMethod(action = "http://soapui.cookbook.samples/deleteInvoiceRequest/request") public void deleteInvoice( @WebParam(name = "invoiceNo", targetNamespace = "http://soapui.cookbook.samples/schema/invoice") java.lang.String invoiceNo );
@WebMethod @Oneway public void echoOneWay(String input) { Logger.getLogger(this.getClass()).info("echoOneWay: " + input); count.incrementAndGet(); }
@WebMethod @Oneway public void sayHelloOneWay(String input) { Logger.getLogger(this.getClass()).info("sayHelloOneWay: " + input); count.incrementAndGet(); }
@WebMethod @Oneway public void echoOneWay(String input) { count1.incrementAndGet(); MessageContext msgContext = context.getMessageContext(); HttpServletRequest request = (HttpServletRequest)msgContext.get(MessageContext.SERVLET_REQUEST); final String scheme = request.getScheme(); Logger.getLogger(this.getClass()).info("echoOneWay: " + input + ", scheme: " + scheme); if (scheme != null) { count2.incrementAndGet(); } }
@WebMethod @Oneway public void echoOneWay(String input) { Logger.getLogger(this.getClass()).info("echoOneWay: " + input); count.addAndGet(5); }
@WebMethod @Oneway public void echoOneWay(String input) { Logger.getLogger(this.getClass()).info("echoOneWay: " + input); super.echoOneWay(input); }
/** * * @param secHeader * @param ping */ @WebMethod(operationName = "SecurePing") @Oneway public void securePing( @WebParam(name = "Ping", partName = "Ping") PingDocument ping, @WebParam(name = "SecHeader", targetNamespace = "http://www.openuri.org/jsr181/WebParamExample", header = true, partName = "SecHeader") SecurityHeader secHeader);
@WebMethod @Oneway public void ping() { log.info("ping"); feedback = "ok"; }
@Oneway @WebMethod(operationName = "Message", action = "ebXML") public void message( @WebParam(partName = "MessageHeader", name = "MessageHeader", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.MessageHeader messageHeader, @WebParam(partName = "SyncReply", name = "SyncReply", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.SyncReply syncReply, @WebParam(partName = "MessageOrder", name = "MessageOrder", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.MessageOrder messageOrder, @WebParam(partName = "AckRequested", name = "AckRequested", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.AckRequested ackRequested, @WebParam(partName = "Manifest", name = "Manifest", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd") nl.clockwork.mule.ebms.model.ebxml.Manifest manifest );
@Oneway @WebMethod(operationName = "MessageError", action = "ebXML") public void messageError( @WebParam(partName = "MessageHeader", name = "MessageHeader", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.MessageHeader messageHeader, @WebParam(partName = "ErrorList", name = "ErrorList", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true) nl.clockwork.mule.ebms.model.ebxml.ErrorList errorList );
/** * Creates full attack */ @Oneway @WebMethod public void createFullAttack(@WebParam(name="createFullAttackRequest") CreateFullAttackRequest createFullAttackRequest) { // Execute query activeAttackDao.createFullAttack(attackWindowsDao, createFullAttackRequest.getTool(), createFullAttackRequest.getAttackType(), createFullAttackRequest.getRemoteUser(), createFullAttackRequest.getRemoteIp(), createFullAttackRequest.getRemotePort(), createFullAttackRequest.getExtraParam(), createFullAttackRequest.getHashToCrack(), createFullAttackRequest.getNotifyToEmail(), createFullAttackRequest.getWindowSize(), createFullAttackRequest.getTotalWords()); }
/** * Deletes full attack */ @Oneway @WebMethod public void removeFullAttack(@WebParam(name="removeFullAttackRequest") RemoveFullAttackRequest removeFullAttackRequest) { // Execute query activeAttackDao.removeFullAttack(removeFullAttackRequest.getId()); }
@WebMethod @SOAPBinding @Oneway public void TerminateVMbyServerId( @WebParam(name="credentials", targetNamespace="http://types.opentosca.org/") String credentials, @WebParam(name="endpointsAPI", targetNamespace="http://types.opentosca.org/") String endpointsAPI, @WebParam(name="serverId", targetNamespace="http://types.opentosca.org/") String serverId ) { // This HashMap holds the return parameters of this operation. final HashMap<String,String> returnParameters = new HashMap<String, String>(); try { ICloudProviderAPI CP = CloudProviderAPIFactory.createCP(endpointsAPI); //String privKey = CP.GetKeypair(credentials, endpointsAPI, keypair); CP.TerminateVM(credentials, endpointsAPI, serverId); returnParameters.put("success", "true"); sendResponse(returnParameters); } catch (Exception npe) { npe.printStackTrace(); System.out.println("npe.getClass:"+ npe.getClass()); sendFaultResponse("ws04", "General exception."); } }
/** * * @param arg0 */ @WebMethod @Oneway @RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/addnumbers", className = "org.test.addnumbers.OneWayInt") public void oneWayInt( @WebParam(name = "arg0", targetNamespace = "http://org/test/addnumbers") int arg0);
/** * * @param onewayStr */ @WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn") @Oneway @RequestWrapper(localName = "oneWay", targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped", className = "org.test.proxy.doclitwrapped.sei.OneWay") public void oneWay( @WebParam(name = "oneway_str", targetNamespace = "") String onewayStr);
/** * This method will drive the attachment of @Oneway annotation data to the * <code>MethodDescriptionComposite</code> * * @param mdc - <code>MethodDescriptionComposite</code> * @param method - <code>Method</code> */ private void attachOnewayAnnotation(MethodDescriptionComposite mdc, Method method) { Oneway oneway = (Oneway)ConverterUtils.getAnnotation(Oneway.class, method); if (oneway != null) { mdc.setOneWayAnnot(true); } else { mdc.setOneWayAnnot(false); } }
/** * */ @WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn") @Oneway @RequestWrapper(localName = "oneWayVoid", targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped", className = "org.test.proxy.doclitwrapped.OneWayVoid") public void oneWayVoid();
/** @param onewayStr */ @WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn") @Oneway @RequestWrapper(localName = "oneWay", targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped", className = "org.test.proxy.doclitwrapped.sei.OneWay") public void oneWay( @WebParam(name = "oneway_str", targetNamespace = "") String onewayStr);
/** * * @param onewayStr */ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn") @Oneway @RequestWrapper(localName = "oneWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.sei.OneWay") public void oneWay( @WebParam(name = "oneway_str", targetNamespace = "") String onewayStr);
/** * * @param request */ @WebMethod @Oneway @RequestWrapper(localName = "echoPolymorphicDate", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoPolymorphicDate") public void echoPolymorphicDate( @WebParam(name = "request", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data") XMLGregorianCalendar request);
/** * * @param onewayStr */ @WebMethod(action = "http://wrap.sample.test.org/twoWayReturn") @Oneway @RequestWrapper(localName = "oneWay", targetNamespace = "http://wrap.sample.test.org", className = "org.test.sample.wrap.OneWay") public void oneWay( @WebParam(name = "oneway_str", targetNamespace = "") String onewayStr);
/** * * @param arg0 */ @WebMethod @Oneway @RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/addnumbershandler", className = "org.test.addnumbershandler.OneWayInt") public void oneWayInt( @WebParam(name = "arg0", targetNamespace = "http://org/test/addnumbershandler") int arg0);
/** * * @param arg0 */ @WebMethod @Oneway @RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/headershandler", className = "org.test.headershandler.OneWayInt") public void oneWayInt( @WebParam(name = "arg0", targetNamespace = "http://org/test/headershandler") int arg0);
@Oneway @Action(input = "urn:expireAllSessions") @RequestWrapper(localName = "expireAllSessions", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ExpireAllSessions") @WebMethod(action = "urn:expireAllSessions") public void expireAllSessions( @WebParam(name = "webappFileName", targetNamespace = "http://org.apache.axis2/xsd") java.lang.String webappFileName );
@Oneway @Action(input = "urn:changeDefaultAppVersion", fault = {@FaultAction(className = WebappAdminArtifactMetadataException.class, value = "urn:changeDefaultAppVersionWebappAdminArtifactMetadataException")}) @RequestWrapper(localName = "changeDefaultAppVersion", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ChangeDefaultAppVersion") @WebMethod(action = "urn:changeDefaultAppVersion") public void changeDefaultAppVersion( @WebParam(name = "appGroupName", targetNamespace = "http://org.apache.axis2/xsd") java.lang.String appGroupName, @WebParam(name = "fileName", targetNamespace = "http://org.apache.axis2/xsd") java.lang.String fileName ) throws WebappAdminArtifactMetadataException;
@Oneway @Action(input = "urn:reloadWebapps") @RequestWrapper(localName = "reloadWebapps", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ReloadWebapps") @WebMethod(action = "urn:reloadWebapps") public void reloadWebapps( @WebParam(name = "webappFileNames", targetNamespace = "http://org.apache.axis2/xsd") java.util.List<java.lang.String> webappFileNames );