Web Service Proxy class

R

rgarf

I created a Web Service that has a method that takes string arrays for ex:
public void CalculateModel(string[] stringList1, string[] stringList2)
{
//code here
}
When I add this web service as a web reference to my C++ application it
generates a proxy class, in the proxy class it displays the array parameters
like this:
BSTR* stringList1, int __stringList1_nSizeIs,
BSTR* stringList2, int __stringList2_nSizeIs,

Then it does the following: checks these pointers for NULL
if ( stringList1 == NULL )
return E_POINTER;
if ( stringList2 == NULL )
return E_POINTER;

So my question is how do I prevent the proxy file from adding these checks
for NULL? because I do allow the user to pass in an empty string array which
is defaulted to NULL on the C++ side.

Thanks
 
M

Martin Kulov

Hello rgarf,

AFAIK, you have to create the proxy by your own to avoid these kinds of checks.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top