在SOAP中如何写NativeToXS和XSToNative
请问如何写TMyData的NativeToXS和XSToNative两个方法的实现!谢谢!
class TMyData: public TRemotableXS
{
private:
short m_nPointId;
AnsiString m_sPointName;
short m_nChannelId;
AnsiString m_sChannelName;
short m_nMVId;
__published:
__property short nPointId = { read=m_nPointId, write=m_nPointId };
__property AnsiString sPointName = { read=m_sPointName, write=m_sPointName };
__property short nChannelId = { read=m_nChannelId, write=m_nChannelId };
__property AnsiString sChannelName = { read=m_sChannelName, write=m_sChannelName };
__property short nMVId = { read=m_nMVId, write=m_nMVId };
public:
WideString __fastcall NativeToXS();
void __fastcall XSToNative(WideString Data);
};