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


Java Call.setOperation方法代码示例

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


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

示例3: prepareCall

import org.apache.axis.client.Call; //导入方法依赖的package包/类
public void prepareCall(Call call) {
    call.setOperation(operationDesc);
    call.setUseSOAPAction(useSOAPAction);
    call.setSOAPActionURI(soapActionURI);
    call.setSOAPVersion(soapVersion);
    call.setOperationName(operationName);
    //GAH!!!
    call.setOperationStyle(operationDesc.getStyle());
    call.setOperationUse(operationDesc.getUse());
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:OperationInfo.java

示例4: getQuote3

import org.apache.axis.client.Call; //导入方法依赖的package包/类
/**
 * This will use the WSDL to prefill all of the info needed to make
 * the call.  All that's left is filling in the args to invoke().
 */
public float getQuote3(String args[]) throws Exception {
  Options  opts = new Options( args );

  args = opts.getRemainingArgs();

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

  /* Define the service QName and port QName */
  /*******************************************/
  QName servQN = new QName("urn:xmltoday-delayed-quotes","GetQuoteService");
  QName portQN = new QName("urn:xmltoday-delayed-quotes","GetQuote");

  /* Now use those QNames as pointers into the WSDL doc */
  /******************************************************/
  Service service = new Service( new URL("file:GetQuote.wsdl"), servQN );
  Call    call    = (Call) service.createCall( portQN, "getQuote" );

  /* Strange - but allows the user to change just certain portions of */
  /* the URL we're gonna use to invoke the service.  Useful when you  */
  /* want to run it thru tcpmon (ie. put  -p81 on the cmd line).      */
  /********************************************************************/
  opts.setDefaultURL( call.getTargetEndpointAddress() );
  call.setTargetEndpointAddress( new URL(opts.getURL()) );

  /* Define some service specific properties */
  /*******************************************/
  call.setUsername( opts.getUser() );
  call.setPassword( opts.getPassword() );

  /* Get symbol and invoke the service */
  /*************************************/
  Object result = call.invoke( new Object[] { symbol = args[0] } );
  result = call.invoke( new Object[] { symbol = args[0] } );

  /* Reuse the call object to call the test method */
  /*************************************************/
  call.setOperation( portQN, "test" );
  call.setReturnType( XMLType.XSD_STRING );

  System.out.println( call.invoke(new Object[]{}) );

  return( ((Float) result).floatValue() );
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:51,代码来源:GetQuote1.java


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