本文整理了Java中org.apache.axis.client.Call.setProperty()
方法的一些代码示例,展示了Call.setProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.setProperty()
方法的具体详情如下:
包路径:org.apache.axis.client.Call
类名称:Call
方法名:setProperty
[英]Allows you to set a named property to the passed in value. There are a few known properties (like username, password, etc) that are variables in Call. The rest of the properties are stored in a Hashtable. These common properties should be accessed via the accessors for speed/type safety, but they may still be obtained via this method. It's up to one of the Handlers (or the Axis engine itself) to go looking for one of them. There are various well defined properties defined in the JAX-RPC specification and declared in the Call and Stub classes. It is not possible to set any other properties beginning in java. or javax. that are not in the specification.
[中]允许您将命名属性设置为传入的值。有一些已知属性(如用户名、密码等)是调用中的变量。其余属性存储在哈希表中。为了速度/类型安全,应通过访问器访问这些公共属性,但仍然可以通过此方法获得这些属性。由一个处理程序(或Axis引擎本身)去寻找其中一个。JAX-RPC规范中定义了各种定义良好的属性,并在调用和存根类中声明了这些属性。不可能从java开始设置任何其他属性。或者javax。规范中没有的。
代码示例来源: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: org.renci.condor/condor-wsdl
_call.setOperation(_operations[10]);
_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: org.renci.condor/condor-wsdl
_call.setOperation(_operations[17]);
_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", "getFile"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(offset), new java.lang.Integer(length)});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[15]);
_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", "declareFile"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(size), hashType, hash});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[16]);
_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", "sendFile"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(offset), data});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[9]);
_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", "removeJob"));
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(forceRemoval)});
代码示例来源:origin: com.aoindustries/ao-credit-cards-sagePayments
_call.setOperation(_operations[1]);
_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: com.aoindustries/ao-credit-cards-sagePayments
_call.setOperation(_operations[3]);
_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: org.renci.condor/condor-wsdl
_call.setOperation(_operations[22]);
_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", "createJobTemplate"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(clusterId), new java.lang.Integer(jobId), owner, type, cmd, args, requirements});
代码示例来源:origin: com.aoindustries/ao-credit-cards-sagePayments
_call.setOperation(_operations[4]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("https://www.sagepayments.net/web_services/wsVault/wsVault/VERIFY_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("https://www.sagepayments.net/web_services/wsVault/wsVault", "VERIFY_SERVICE"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {m_ID, m_KEY});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[19]);
_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", "listSpool"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId)});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[7]);
_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: OpenNMS/opennms
_call.setOperation(_operations[0]);
_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});
代码示例来源:origin: org.renci.condor/condor-wsdl
_call.setOperation(_operations[2]);
_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: org.renci.condor/condor-wsdl
_call.setOperation(_operations[5]);
_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: org.renci.condor/condor-wsdl
_call.setOperation(_operations[8]);
_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: OpenNMS/opennms
_call.setOperation(_operations[1]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("HPD_IncidentInterface_WS/HelpDesk_QueryList_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_QueryList_Service"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters, ARAuthenticate});
代码示例来源:origin: OpenNMS/opennms
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("HPD_IncidentInterface_WS/HelpDesk_Modify_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_Modify_Service"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters, ARAuthenticate});
代码示例来源:origin: OpenNMS/opennms
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("urn:HPD_IncidentInterface_Create_WS/HelpDesk_Submit_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_Submit_Service"));
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ARAuthenticate, parameters});
内容来源于网络,如有侵权,请联系作者删除!