org.apache.axis.client.Call.invoke()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(12.0k)|赞(0)|评价(0)|浏览(1924)

本文整理了Java中org.apache.axis.client.Call.invoke()方法的一些代码示例,展示了Call.invoke()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.invoke()方法的具体详情如下:
包路径:org.apache.axis.client.Call
类名称:Call
方法名:invoke

Call.invoke介绍

[英]Invoke this Call with its established MessageContext (perhaps because you called this.setRequestMessage()) Note: Not part of JAX-RPC specification.
[中]使用已建立的MessageContext调用此调用(可能是因为您调用了此.setRequestMessage())注意:这不是JAX-RPC规范的一部分。

代码示例

代码示例来源:origin: opentripplanner/OpenTripPlanner

RTcall.setOperationName(new QName("edc.usgs.gov", "processAOI"));
String response = (String) RTcall.invoke(new Object[] { payload });

代码示例来源:origin: stackoverflow.com

try {
  if (wsEndPoint == null || wsEndPoint.trim().length() == 0 || wsNAME == null || wsNAME.trim().length() == 0 ||
    id == null || id.trim().length() == 0 || code == null || code.trim().length() == 0) {
    retVal = "Error: mandatory parameter missing.";
  } else {
    Service  service = new Service();
    Call call = (Call)service.createCall();

    call.setTargetEndpointAddress(new java.net.URL(wsEndPoint));
    call.setOperationName(new QName("http://service.name.it/", wsNAME));
    call.addParameter(new QName("http://service.name.it/", "arg0"), new QName("http://www.w3.org/2001/XMLSchema", "string"), ParameterMode.IN);
    call.addParameter(new QName("http://service.name.it/", "arg1"), new QName("http://www.w3.org/2001/XMLSchema", "string"), ParameterMode.IN);
    call.setSOAPActionURI("");
    call.setEncodingStyle(null);
    call.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    call.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);

    retVal = ((String)call.invoke(new Object[] {id, code})).trim();
  }
} catch (Exception e) {
  retVal = String.format("Error: %s.", e.getMessage());

代码示例来源:origin: org.renci.condor/condor-wsdl

_call.setOperation(_operations[10]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "holdJob"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), reason, new java.lang.Boolean(emailUser), new java.lang.Boolean(emailAdmin), new java.lang.Boolean(systemHold)});

代码示例来源:origin: stackoverflow.com

Call call = service.createCall();
   call.setPortTypeName(portQName);
   call.setOperationName(new QName(namespace, operation));
   call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/"); 
   call.setProperty(Call.OPERATION_STYLE_PROPERTY, "rpc");
   call.addParameter("in0", org.apache.axis.Constants.XSD_STRING ,ParameterMode.IN);
   call.addParameter("in1", org.apache.axis.Constants.XSD_STRING ,ParameterMode.IN);
   call.setReturnType(serviceQName);
   String targetEndpoint = "http://113.160.19.218:8312/axis/services/WeatherForecastTest1";
   call.setTargetEndpointAddress(targetEndpoint);
   String result = (String) call.invoke(params);
   out.println(result);

代码示例来源:origin: stackoverflow.com

InputStream input = new ByteArrayInputStream(apiBody.getBytes());
Service service = new Service();
Call call = (Call) service.createCall();
SOAPEnvelope soapEnvelope = new SOAPEnvelope(input);

call.setTargetEndpointAddress(new URL(apiUrl));
call.setUseSOAPAction(true);
if(StringUtils.isNotEmpty(actionURI)){
 call.setSOAPActionURI(actionURI);
}

soapEnvelope = call.invoke(soapEnvelope);
return soapEnvelope.toString();

代码示例来源:origin: com.aoindustries/ao-credit-cards-sagePayments

_call.setOperation(_operations[1]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("https://www.sagepayments.net/web_services/wsVault/wsVault/UPDATE_DATA");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("https://www.sagepayments.net/web_services/wsVault/wsVault", "UPDATE_DATA"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {m_ID, m_KEY, GUID, DATA});

代码示例来源:origin: mx4j/mx4j-tools

public void close() throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "close"));
 call.setReturnType(XMLType.AXIS_VOID);
 call.invoke(new Object[0]);
}

代码示例来源:origin: com.aoindustries/ao-credit-cards-sagePayments

_call.setOperation(_operations[3]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("https://www.sagepayments.net/web_services/wsVault/wsVault/DELETE_DATA");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("https://www.sagepayments.net/web_services/wsVault/wsVault", "DELETE_DATA"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {m_ID, m_KEY, GUID});

代码示例来源:origin: uk.org.mygrid.taverna.baclava/baclava-store-implementation

public void storeMetadata(String theMetadata) {
  try {
    Call call = (Call) new Service().createCall();
    call.setTargetEndpointAddress(serviceEndpoint);
    call.setOperationName(new QName("storeMetadata"));
    call.invoke(new Object[] { theMetadata });
  } catch (RemoteException re) {
    log.error("Remote exception when storing metadata", re);
    throw new RuntimeException("Cannot store metadata!");
  } catch (ServiceException se) {
    log.error("Service exception when calling remote service", se);
    throw new RuntimeException(
        "Service exception creating call object!");
  }
}

代码示例来源:origin: org.renci.condor/condor-wsdl

_call.setOperation(_operations[7]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "removeCluster"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), reason});

代码示例来源:origin: mx4j/mx4j-tools

public String connect(Object credentials) throws IOException, SecurityException
  {
   Call call = createCall();

   call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "connect"));
   call.addParameter("credentials", XMLType.XSD_ANY, ParameterMode.IN);
   call.setReturnType(XMLType.XSD_STRING);
//      call.addFault(new QName(SOAPConstants.NAMESPACE_URI, "SecurityException"), SecurityException.class, XMLType.XSD_ANY, true);

   connectionId = (String)call.invoke(new Object[]{credentials});
   return connectionId;
  }

代码示例来源:origin: org.renci.condor/condor-wsdl

_call.setOperation(_operations[2]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "beginTransaction"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(duration)});

代码示例来源:origin: mx4j/mx4j-tools

public NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "fetchNotifications"));
 call.addParameter("sequence", XMLType.XSD_LONG, ParameterMode.IN);
 call.addParameter("maxNumber", XMLType.XSD_INT, ParameterMode.IN);
 call.addParameter("timeout", XMLType.XSD_LONG, ParameterMode.IN);
 call.setReturnType(new QName(SOAPConstants.NAMESPACE_URI, "NotificationResult"));
 NotificationResult result = (NotificationResult)call.invoke(new Object[]{new Long(clientSequenceNumber), new Integer(maxNotifications), new Long(timeout)});
 return result;
}

代码示例来源:origin: org.renci.condor/condor-wsdl

_call.setOperation(_operations[5]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "extendTransaction"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(duration)});

代码示例来源:origin: mx4j/mx4j-tools

public String[] getDomains(Subject delegate) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getDomains"));
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(XMLType.SOAP_ARRAY);
 String[] domains = (String[])call.invoke(new Object[]{delegate});
 return domains;
}

代码示例来源:origin: org.renci.condor/condor-wsdl

_call.setOperation(_operations[8]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "newJob"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId)});

代码示例来源:origin: mx4j/mx4j-tools

public String getDefaultDomain(Subject delegate) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getDefaultDomain"));
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(XMLType.XSD_STRING);
 String domain = (String)call.invoke(new Object[]{delegate});
 return domain;
}

代码示例来源:origin: OpenNMS/opennms

_call.setOperation(_operations[0]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("HPD_IncidentInterface_WS/HelpDesk_Query_Service");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("", "HelpDesk_Query_Service"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters, ARAuthenticate});

代码示例来源:origin: mx4j/mx4j-tools

public Integer getMBeanCount(Subject delegate) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getMBeanCount"));
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(XMLType.XSD_INT);
 Integer count = (Integer)call.invoke(new Object[]{delegate});
 return count;
}

代码示例来源:origin: OpenNMS/opennms

_call.setOperation(_operations[1]);
   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("HPD_IncidentInterface_WS/HelpDesk_QueryList_Service");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("", "HelpDesk_QueryList_Service"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters, ARAuthenticate});

相关文章