本文整理匯總了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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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 } ));
}
示例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 } );
}
示例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;
}
示例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;
}
}
}
示例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;
}
}
}
示例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);
}
}
示例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;
}
}
}
示例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();
}
示例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);
}
}
}