out parameters for Web Service methods

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following function for a web services method (6 parameters where 5
of them need to pass out values):
[WebMethod(Description="Given pkey, return a patient record as parameters")]
public void GetPatientPara(out string patientID, out string LastName, out
string FirstName, out string Sex, out int Age, int pkey)

However, in client side, I only have first five parameters in
proxy.GetPatientPara

What is the problem that I have?

Thank for any comment about it.

David
 
In fact, after updating the web reference, I get method interface like
GetPatientPara(int pkey, out string LastName, out
string FirstName, out string Sex, out int Age).

string patientID disappeared.

David
 
Check to see if your return value of the proxy is now string. I bet
patientID got turned into a return value.

I don't know why this happens, but another poster recently complained about
something similar.

--
John Saunders [MVP]

david said:
In fact, after updating the web reference, I get method interface like
GetPatientPara(int pkey, out string LastName, out
string FirstName, out string Sex, out int Age).

string patientID disappeared.

David
david said:
I have the following function for a web services method (6 parameters
where 5
of them need to pass out values):
[WebMethod(Description="Given pkey, return a patient record as
parameters")]
public void GetPatientPara(out string patientID, out string LastName, out
string FirstName, out string Sex, out int Age, int pkey)

However, in client side, I only have first five parameters in
proxy.GetPatientPara

What is the problem that I have?

Thank for any comment about it.

David
 
Back
Top