按照范例写的C#代码:
// Calling context - class CAdxCallContext CAdxCallContext cc = new CAdxCallContext(); // Instance of CAdxCallContext cc.codeLang = "CHI"; // Language code cc.codeUser = "ADMIN"; // X3 user cc.password = ""; // X3 password cc.poolAlias = "WS_DEMOCHI"; // Pool name cc.requestConfig = "adxwss.trace.on=on&adxwss.trace.size=16384&adonix.trace.on=on&adonix.trace.level=3&adonix.trace.size=8"; // Request configuration string
// Web service instance CAdxWebServiceXmlCCService wsvc = new CAdxWebServiceXmlCCService();
// XmlResult instance CAdxResultXml result = new CAdxResultXml();
CAdxParamKeyValue[] objKey = new CAdxParamKeyValue[1]; // Only one element (Simple object) objKey[0] = new CAdxParamKeyValue(); objKey[0].key = "1"; // First element in the index objKey[0].value = "C0001"; // Element value
// Method: read(CAdxCallContext <context>, String <publicname>, CAdxParamKeyValue <key>) result = wsvc.read(cc, "WS_BPC", objKey); textBox1.Text = result.resultXml; [此帖子已被 pepsi 在 2009-3-30 10:38:44 编辑过] |