473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

out parameters for Web Service methods

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

Jun 22 '07 #1
2 2138
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" wrote:
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
Jun 22 '07 #2
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" <da***@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
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" wrote:
>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
Jun 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wawa_piggy | last post by:
My .net application is to consume a Java web services exposed using AXIS. The web service will extract the user name and password to perform some custom authentication. /** Java **/ userId =...
0
by: Diego F. | last post by:
I'm having a problem that I can't solve. - I wrote a library with a class that has some numeric attributes and an ArrayList; more or less: public class myClass { private int number; private...
0
by: Hulk | last post by:
Hello, Is it possible to list parameters and their types when you are using tag or any else tag? I couldn't find any lineseparator characters to Description attribute when I was trying to...
0
by: hulkko123 | last post by:
Hello, Is it possible to list parameters and their types when you are using tag or any else tag? I couldn't find any lineseparator characters to Description attribute when I was trying to...
1
by: hinsbr | last post by:
Hello, I am trying to learn about web services. I was able to get a working VS 2005 web service and VS 2005 web service consumer application to communicate. The service would return the passed...
0
by: raghuraman_ace | last post by:
Hi i have started a webservice wich has a webmethod with parameters using literal encoding & encoded encoding . The webservice is compiled successfully . But i don know how to pass the...
10
by: amazon | last post by:
Our vender provided us a web service: 1xyztest.xsd file... ------------------------------------ postEvent PostEventRequest ------------------------------------- authetication authentication...
1
by: Glenn | last post by:
I am writing a Web Service in C# ASP.NET 2.0 that takes two optional parameters. One is an int and the other is a string. Below is the definition of the Web Method: public...
5
by: leon | last post by:
Hello group, Somebody has a example where web methods receive and send classes in the parameters. I looking the best way to send parameters to web service and anybody told me something like...
2
by: Ben Joyce | last post by:
Hi all. I'm confused as to what the best or expected approch is to Web Service design under .Net, mainly with regards to Methods and Parameters. This is a bit awkward to explain so please bear...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.