在vc6.0中用Invoke调用webservice,如何实现多个返回值
DISPPARAMS dispparams2;//参数应该与调用函数的参数相反 dispparams2.cArgs = 2; dispparams2.cNamedArgs = 0; dispparams2.rgdispidNamedArgs = NULL; CString strItem = ""; VARIANTARG params2[2]; VariantInit(¶ms2[0]); params2[0].vt = VT_BSTR; V_VT(¶ms2[0]) = VT_BSTR; V_BSTR(¶ms2[0]) = strItem.AllocSysString(); VariantInit(¶ms2[1]); params2[1].vt = VT_INT; V_VT(¶ms2[1]) = VT_INT; V_INT(¶ms2[1]) = Item_ID; dispparams2.rgvarg = params2; VARIANT result2; VariantInit(&result2); hr = soapClient->Invoke(dispid, IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_METHOD,&dispparams2,&result2,NULL, NULL);