Click to See Complete Forum and Search --> : possible to use output parameter in webmethod?


IronLady
March 6th, 2003, 03:40 AM
Hope you guys could help me wif dis.

The webmethod that I am writing right now using vc++.net needs to return multiple values back to the client app. Therefore I used output parameters in my web method as shown below:

void HotelResSysWebService::GetMaxChildPerRm(int &intMaxChild)
{
HotelRS_HotelBookings* hotelBookings = new HotelRS_HotelBookings();

hotelBookings->GetMaxChildPerRm(intMaxChild);

return;
}

But instead, I received this server error:
"System.Int32* is inaccessible due to its protection level. Only public types can be processed."

Does anyone knows how to workaround this? Or is it possible at all to return multiple values using xml web service?

Thanks in advance.