⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 codestretch.java

📁 著名的uncle Bob的Agile software development的代码
💻 JAVA
字号:
Vector d_params = new Vector();
d_params.addElement(
	new Parameter("name", String.class, "Robert", null));
d_params.addElement(
	new Parameter("id", int.class, new Integer(7734), null)

Call call = new Call();

call.setTargetObjectURI(d_objectUri);
call.setMethodName(d_methodName);
call.setEncodingStyleURI(d_encodingStyleURI);
call.setParams(d_params);

Response = d_resp;

// invoke the call.
try
{
    d_resp = call.invoke(s_url, "");
}
catch (SOAPException e)
{
    System.err.println("Caught SOAPException (" 
		+ e.getFaultCode() + "): " + e.getMessage());
}

Object rtnValue = null;
if (d_resp.generatedFault())
{
    outputFault(d_methodName, d_resp);
}
else
{
    Parameter ret = d_resp.getReturnValue();
    rtnValue = SoapUtils.fromByteArray((byte[]) ret.getValue());
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -