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


Java Call類代碼示例

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


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

示例1: WMLS_GetBaseMsg

import org.apache.axis.client.Call; //導入依賴的package包/類
public String WMLS_GetBaseMsg(short returnValueIn) throws RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call = createCall();
    _call.setOperation(_operations[2]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("http://www.witsml.org/action/120/Store.WMLS_GetBaseMsg");
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new QName("http://www.witsml.org/message/120", "WMLS_GetBaseMsg"));

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

    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

示例2: 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

示例3: createCall

import org.apache.axis.client.Call; //導入依賴的package包/類
/**
 * Creates and returns an RPC SOAP call.
 * 
 * @return an RPC SOAP call
 */
protected Call createCall() throws Exception {
	QName workFlowInputQName = new QName(RPROT_DATA_NAMESPACE,
			"WorkFlowInputType");
	QName workFlowOuputQName = new QName(RPROT_DATA_NAMESPACE,
			"WorkFlowOutputType");

	Service service = new Service();
	Call call = (Call) service.createCall();
	System.out.println("Calling : " + urlString);
	call.setTargetEndpointAddress(new java.net.URL(urlString));

	call.setOperationName("startWorkFlow");

	call.addParameter("parameters", workFlowInputQName, ParameterMode.IN);
	call.setReturnType(workFlowOuputQName, WorkFlowOutputType.class);

	register(call, WorkFlowInputType.class, workFlowInputQName);
	register(call, WorkFlowOutputType.class, workFlowOuputQName);
	return call;
}
 
開發者ID:NCIP,項目名稱:cagrid-general,代碼行數:26,代碼來源:TestClient.java

示例4: main

import org.apache.axis.client.Call; //導入依賴的package包/類
public static void main(String [] args) {
    try {
        String endpoint = 
                 "http://nagoya.apache.org:5049/axis/services/echo";
  
        Service  service = new Service();
        Call     call    = (Call) service.createCall();

        call.setTargetEndpointAddress( new java.net.URL(endpoint) );
        call.setOperationName(new QName("http://soapinterop.org/", "echoString") );

        // Call to addParameter/setReturnType as described in user-guide.html
        //call.addParameter("testParam",
        //                  org.apache.axis.Constants.XSD_STRING,
        //                  javax.xml.rpc.ParameterMode.IN);
        //call.setReturnType(org.apache.axis.Constants.XSD_STRING);

        String ret = (String) call.invoke( new Object[] { "Hello!" } );

        System.out.println("Sent 'Hello!', got '" + ret + "'");
    } catch (Exception e) {
        System.err.println(e.toString());
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:25,代碼來源:TestClient.java

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: _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

示例11: _remove

import org.apache.axis.client.Call; //導入依賴的package包/類
private boolean _remove(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(boolean.class);
    call.setReturnQName(Constants.XSD_BOOLEAN);
  
    return ((Boolean)call.invoke( new Object[] {cacheName,key } )).booleanValue();

}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:23,代碼來源:SoapClient.java

示例12: _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

示例13: 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

示例14: testSendNotificationToOne

import org.apache.axis.client.Call; //導入依賴的package包/類
public void testSendNotificationToOne() {
	try {
		String endpoint = "http://localhost:8080/paging/SendNotification.jws";

		Service service = new Service();
		Call call = (Call) service.createCall();

		call.setTargetEndpointAddress(new java.net.URL(endpoint));
		call.setOperationName(new QName("http://soapinterop.org/",
				"sendPage"));
		
		String[] ret = (String[])call.invoke(new Object[] {"[email protected]",
															"Test SOAP", "Test SOAP Notification from JUnit"});
		
		for (int i = 0; i < ret.length; i++) {
			System.out.println (ret[i]);
		}
	} catch (Exception e) {
		e.printStackTrace();
	}
}
 
開發者ID:davidrudder23,項目名稱:OpenNotification,代碼行數:22,代碼來源:SOAPSendNotificationTest.java

示例15: checkAdminScreenAccess

import org.apache.axis.client.Call; //導入依賴的package包/類
public void checkAdminScreenAccess()
{
  this.clearNotifications();

  Call call = newCall();
  Object[] params = { this.getSessionId() };

  try
  {
    call.invoke(FacadeMethods.CHECK_ADMIN_SCREEN_ACCESS.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,代碼行數:26,代碼來源:WebServiceClientRequest.java


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