M
Mark Sztainbok
I have a C# web service for which I have generated a C++ proxy using sproxy.
I'm having a problem with the generated proxy and one of the methods of the
web service. The method has the following signature:
public bool submitTemperatureData(String userId, String password, String
consignmentGUID, String uid, ConfigurationData configuration,
TemperatureData[] data, bool handheld, SignatureData[] signatureData)
The problem I'm having is that sproxy generates a proxy with the following
code which doesn't allow me to pass an null array for the data or
signatureData parameters (it returns E_POINTER):
emplate <typename TClient>
inline HRESULT CExagoDataServiceT<TClient>::submitTemperatureData(
BSTR userId,
BSTR password,
BSTR consignmentGUID,
BSTR uid,
ConfigurationData configuration,
TemperatureData* data, int __data_nSizeIs,
bool handheld,
SignatureData* signatureData, int __signatureData_nSizeIs,
bool* submitTemperatureDataResult
)
{
if ( data == NULL )
return E_POINTER;
if ( signatureData == NULL )
return E_POINTER;
if ( submitTemperatureDataResult == NULL )
return E_POINTER;
This problem has only happened since I upgraded my Visual Studio .NET 2002
project to Visual Studio .NET 2003 so the behaviour is specific to the
proxies generated by the 2003 version of sproxy.
Has anyone else had this problem? If so, how did they fix it? Is there
anyway to fix it without having to manually change the generated proxy file?
Any help would be greatly appreciated.
Thanks,
Mark
I'm having a problem with the generated proxy and one of the methods of the
web service. The method has the following signature:
public bool submitTemperatureData(String userId, String password, String
consignmentGUID, String uid, ConfigurationData configuration,
TemperatureData[] data, bool handheld, SignatureData[] signatureData)
The problem I'm having is that sproxy generates a proxy with the following
code which doesn't allow me to pass an null array for the data or
signatureData parameters (it returns E_POINTER):
emplate <typename TClient>
inline HRESULT CExagoDataServiceT<TClient>::submitTemperatureData(
BSTR userId,
BSTR password,
BSTR consignmentGUID,
BSTR uid,
ConfigurationData configuration,
TemperatureData* data, int __data_nSizeIs,
bool handheld,
SignatureData* signatureData, int __signatureData_nSizeIs,
bool* submitTemperatureDataResult
)
{
if ( data == NULL )
return E_POINTER;
if ( signatureData == NULL )
return E_POINTER;
if ( submitTemperatureDataResult == NULL )
return E_POINTER;
This problem has only happened since I upgraded my Visual Studio .NET 2002
project to Visual Studio .NET 2003 so the behaviour is specific to the
proxies generated by the 2003 version of sproxy.
Has anyone else had this problem? If so, how did they fix it? Is there
anyway to fix it without having to manually change the generated proxy file?
Any help would be greatly appreciated.
Thanks,
Mark