Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Web Service Proxy class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rgarf - 05 Nov 2004 19:43 GMT
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
Martin Kulov - 05 Nov 2004 20:22 GMT
Hello rgarf,

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

Regards,
Martin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.