out parameters for Web Service methods

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
 
G

Guest

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
 
J

John Saunders [MVP]

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
 

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,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top