当前位置: 首页>>代码示例>>Java>>正文


Java Call.invoke方法代码示例

本文整理汇总了Java中org.apache.axis.client.Call.invoke方法的典型用法代码示例。如果您正苦于以下问题:Java Call.invoke方法的具体用法?Java Call.invoke怎么用?Java Call.invoke使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axis.client.Call的用法示例。


在下文中一共展示了Call.invoke方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MSS_Registration

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSRegistrationResp MSS_Registration(final MSSRegistrationReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Registration");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSRegistrationResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_RegistrationBindingStub.java

示例2: MSS_ProfileQuery

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSProfileResp MSS_ProfileQuery(MSSProfileReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_ProfileQuery");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSProfileResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_ProfileQueryBindingStub.java

示例3: MSS_Signature

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSSignatureResp MSS_Signature(MSSSignatureReq req) throws java.rmi.RemoteException {

    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Signature");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSSignatureResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:24,代码来源:MSS_SignatureBindingStub.java

示例4: MSS_StatusQuery

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSStatusResp MSS_StatusQuery(MSSStatusReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_StatusQuery");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSStatusResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_StatusQueryBindingStub.java

示例5: MSS_Handshake

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSHandshakeResp MSS_Handshake(MSSHandshakeReq MSS_HandshakeReq) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Handshake");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {MSS_HandshakeReq});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSHandshakeResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_HandshakeBindingStub.java

示例6: MSS_Receipt

import org.apache.axis.client.Call; //导入方法依赖的package包/类
@Override
public MSSReceiptResp MSS_Receipt(MSSReceiptReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Receipt");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSReceiptResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_ReceiptBindingStub.java

示例7: _get

import org.apache.axis.client.Call; //导入方法依赖的package包/类
private CacheEntry _get(String cacheName,String method,String key) throws ServiceException, MalformedURLException, RemoteException  {
	Service  service = new Service();
    Call     call    = (Call) service.createCall();
    
    call.registerTypeMapping(
            Element.class, 
            element,
            BeanSerializerFactory.class,
            BeanDeserializerFactory.class);
    
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://soap.server.ehcache.sf.net/", method));

    call.addParameter("arg0", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.addParameter("arg1", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.setReturnClass(Element.class);
    call.setReturnQName(element);
    
    return new SoapCacheEntry((Element) call.invoke( new Object[] {cacheName,key } ));
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:21,代码来源:SoapClient.java

示例8: _put

import org.apache.axis.client.Call; //导入方法依赖的package包/类
private void _put(String cacheName,String method,Element el) throws ServiceException, MalformedURLException, RemoteException  {
   	Service  service = new Service();
       Call     call    = (Call) service.createCall();
       
       el.setResourceUri(endpoint);
       
       call.registerTypeMapping(
               Element.class, 
               element,
               BeanSerializerFactory.class,
               BeanDeserializerFactory.class);
       
       call.setTargetEndpointAddress( new java.net.URL(endpoint) );
       call.setOperationName(new QName("http://soap.server.ehcache.sf.net/", method));
       
       
       call.addParameter("arg0", Constants.XSD_STRING, String.class, ParameterMode.IN);
       call.addParameter("arg1", element, Element.class, ParameterMode.IN);
       call.setReturnType(Constants.XSD_ANYSIMPLETYPE);
       
       call.invoke( new Object[] {cacheName,el } );
       //call.invokeOneWay(new Object[] {cacheName,el } );
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:24,代码来源:SoapClient.java

示例9: getParticipants

import org.apache.axis.client.Call; //导入方法依赖的package包/类
/**
 * Get an HashSet of the name of all participating molecules for a given pathway.
 *
 * @param id
 * @return
 * @throws Exception
 */
private HashSet<String> getParticipants(Long id) throws Exception {
    HashSet<String> participants = new HashSet<String>();

    Call callForPathwayParticipants;
    callForPathwayParticipants = createCall("listPathwayParticipantsForId");
    Object[] rtn = (Object[]) callForPathwayParticipants.invoke(new Object[]{id});

    Call callByObject;
    callByObject = createCall("queryByObjects");
    rtn = (Object[]) callByObject.invoke(new Object[]{rtn});

    for (int i = 0; i < rtn.length; i++) {
        EventEntity entity = (EventEntity) rtn[i];
        String[] nameAndCompart = entity.getName().split(" \\[");
        if (nameAndCompart.length == 2 && !participants.contains(nameAndCompart[0])) {
            participants.add(nameAndCompart[0]);
        }
    }
    return participants;
}
 
开发者ID:ncbo,项目名称:resource_access_tools,代码行数:28,代码来源:GetReactomeData.java

示例10: revokeTypePermission

import org.apache.axis.client.Call; //导入方法依赖的package包/类
/**
 * @see com.runwaysdk.facade.client.ClientRequest#revokeTypePermission(java.lang.String,
 *      java.lang.String, String...)
 */
public void revokeTypePermission(String actorId, String mdTypeId, String... operationNames)
{
  this.clearNotifications();
  Object[] params = { this.getSessionId(), actorId, mdTypeId, operationNames };
  Call call = newCall();

  try
  {
    call.invoke(FacadeMethods.REVOKE_TYPE_PERMISSION.getName(), params);
  }
  catch (RemoteException e)
  {
    RuntimeException rte = ClientConversionFacade.buildThrowable(e, this, true);
    if (rte instanceof MessageExceptionDTO)
    {
      MessageExceptionDTO me = (MessageExceptionDTO) rte;
      this.setMessagesConvertToTypeSafe(me);
    }
    else
    {
      throw rte;
    }
  }
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:29,代码来源:WebServiceClientRequest.java

示例11: grantAttributePermission

import org.apache.axis.client.Call; //导入方法依赖的package包/类
/**
 * @see com.runwaysdk.facade.client.ClientRequest#grantAttributePermission(
 *      java.lang.String, String..., String......)
 */
public void grantAttributePermission(String actorId, String mdAttributeId, String... operationNames)
{
  this.clearNotifications();
  Object[] params = { this.getSessionId(), actorId, mdAttributeId, operationNames };
  Call call = newCall();

  try
  {
    call.invoke(FacadeMethods.GRANT_ATTRIBUTE_PERMISSION.getName(), params);
  }
  catch (RemoteException e)
  {
    RuntimeException rte = ClientConversionFacade.buildThrowable(e, this, true);
    if (rte instanceof MessageExceptionDTO)
    {
      MessageExceptionDTO me = (MessageExceptionDTO) rte;
      this.setMessagesConvertToTypeSafe(me);
    }
    else
    {
      throw rte;
    }
  }
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:29,代码来源:WebServiceClientRequest.java

示例12: sendPersistrentNotificationToDevice

import org.apache.axis.client.Call; //导入方法依赖的package包/类
public void sendPersistrentNotificationToDevice (
		String serviceName,
		String notificationUuid,
		String deviceUuid) {
	try {
		String url = getURLForService(serviceName);
		String endpoint =url+"/ClusterManager.jws";
		  
		Service service = new Service();
		Call call = (Call) service.createCall();
			  
		call.setTargetEndpointAddress( new java.net.URL(endpoint) );
		call.setOperationName(new QName("http://soapinterop.org/", "sendPersistentNotificationToDevice"));
			  
		call.invoke( new Object[] { notificationUuid, deviceUuid } );
		
	} catch (Exception e) {
		BrokerFactory.getLoggingBroker().logWarn(e);
	}
	
}
 
开发者ID:davidrudder23,项目名称:OpenNotification,代码行数:22,代码来源:ClusteredServiceManager.java

示例13: removeMember

import org.apache.axis.client.Call; //导入方法依赖的package包/类
/**
 * @see com.runwaysdk.ClientRequest#removeMember(java.lang.String,
 *      java.lang.String, java.lang.String...)
 */
public void removeMember(String userId, String... roles)
{
  this.clearNotifications();
  Object[] params = { this.getSessionId(), userId, roles };
  Call call = newCall();
  try
  {
    call.invoke(FacadeMethods.REMOVE_MEMBER.getName(), params);
  }
  catch (RemoteException e)
  {
    RuntimeException rte = ClientConversionFacade.buildThrowable(e, this, true);
    if (rte instanceof MessageExceptionDTO)
    {
      MessageExceptionDTO me = (MessageExceptionDTO) rte;
      this.setMessagesConvertToTypeSafe(me);
    }
    else
    {
      throw rte;
    }
  }
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:28,代码来源:WebServiceClientRequest.java

示例14: main

import org.apache.axis.client.Call; //导入方法依赖的package包/类
public static void main(String args[]) throws Exception {
    FileReader  reader = new FileReader();
    reader.setDaemon(true);
    reader.start();

    Options opts = new Options( args );

    args = opts.getRemainingArgs();

    if ( args == null ) {
        System.err.println( "Usage: GetQuote <symbol>" );
        System.exit(1);
    }

    String   symbol = args[0] ;
    Service  service = new Service(new XMLStringProvider(wsdd));
    Call     call    = (Call) service.createCall();

    call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote") );
    call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
    call.setReturnType( XMLType.XSD_FLOAT );
    call.setTransport( new FileTransport() );
    call.setUsername(opts.getUser() );
    call.setPassword(opts.getPassword() );
    call.setTimeout(new Integer(10000));

    Float res = new Float(0.0F);
    res = (Float) call.invoke( new Object[] {symbol} );

    System.out.println( symbol + ": " + res );

    reader.halt();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:34,代码来源:FileTest.java

示例15: WMLS_GetVersion

import org.apache.axis.client.Call; //导入方法依赖的package包/类
public String WMLS_GetVersion() throws RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call = createCall();
    _call.setOperation(_operations[5]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("http://www.witsml.org/action/120/Store.WMLS_GetVersion");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new QName("http://www.witsml.org/message/120", "WMLS_GetVersion"));

    setRequestHeaders(_call);
    setAttachments(_call);
    Object _resp = _call.invoke(new Object[]{});

    if (_resp instanceof RemoteException) {
        throw (RemoteException) _resp;
    } else {
        extractAttachments(_call);
        try {
            return (String) _resp;
        } catch (Exception _exception) {
            return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
        }
    }
}
 
开发者ID:hashmapinc,项目名称:witsml-client,代码行数:27,代码来源:StoreSoapBindingStub.java


注:本文中的org.apache.axis.client.Call.invoke方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。