关于bcb2007调用C#的WebService参数传递问题
科多兽 2011-06-24 10:12:59 最近调用一个C#写的WebService接口,里面有个函数接口是virtual GetChannelDataResponse* GetChannelData(const GetChannelData* parameters) = 0;,
class GetChannelData : public TRemotable {
private:
WideString FloginID;
bool FloginID_Specified;
ArrayOfint FchannelIDs;
bool FchannelIDs_Specified;
....
}
在客户端WebService调用
FGetChannelData->loginID = ILoginID;
NS_DataService::GetChannelData *FGetChannelData;
FGetChannelData->channelIDs.set_length(1);
FGetChannelData->channelIDs[0] =123;
_di_DataService FDataService= GetDataService(true,IDataServiceEndPoint,0); //数据服务 GetChannelDataResponse *FDataResponse =FDataService->GetChannelData(FGetChannelData);
服务端能收到信息,LoginID也能够传递过去,但是下面的整型数组却传递不过去。
通过工具能看到能看到channelIDs变量的数值。
有碰到过类似问题的朋友吗?