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

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

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

Call.setOperationName介绍

[英]This is a convenience method. If the user doesn't care about the QName of the operation, the user can call this method, which converts a String operation name to a QName.
[中]这是一种方便的方法。如果用户不关心操作的QName,则可以调用此方法,将字符串操作名转换为QName。

代码示例

代码示例来源: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: 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: OpenNMS/opennms

public void ticketStateUpdate(org.opennms.integration.otrs.ticketservice.TicketStateUpdate ticketStateUpdate, org.opennms.integration.otrs.ticketservice.Credentials request_header) throws java.rmi.RemoteException {
  if (super.cachedEndpoint == null) {
    throw new org.apache.axis.NoEndPointException();
  }
  org.apache.axis.client.Call _call = createCall();
  _call.setOperation(_operations[5]);
  _call.setUseSOAPAction(true);
  _call.setSOAPActionURI("http://opennms.org/integration/otrs/ticketservice#TicketStateUpdate");
  _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  _call.setOperationName(new javax.xml.namespace.QName("http://opennms.org/integration/otrs/ticketservice", "TicketStateUpdate"));
  setRequestHeaders(_call);
  setAttachments(_call);
  _call.invokeOneWay(new java.lang.Object[] {ticketStateUpdate, request_header});
}

代码示例来源:origin: org.apache.openejb/openejb-axis

public void prepareCall(final 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());
}

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

_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: 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.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: 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: com.aoindustries/ao-credit-cards-sagePayments

_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: 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.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 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.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 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.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 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: org.renci.condor/condor-wsdl

_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 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.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});

相关文章