S
Shawn Cutter
Background:
I am trying to return a list of ID's to the client requesting the web
service. The list of ID's I want to return is a list of all relating
ID's to the passed in PersonID.
How it currently functions:
Web Service (Server):
I have a basic web service that receives a PersonID. The webservice
then go to the DB to find all relating ID's. Currently I have the
result stored in a dataset. This however may be overkill since the
dataset consists of one datatable, which contains one column.
Client:
The client is a simple .NET page that uses the following to connect to
the webservice. proxy.PERSONREQUEST(PersonID)
I have successfully filled an array and can return one value from the
array using ( txtResult.Text = proxy.PERSONREQUEST(PersonID) ). How
can I return the entire result to the client all at once? I would like
to return it in the format of:
<PERSONRESULT>
<ID>ADS34579354</<ID>
<<ID>ASR34579354</<ID>
<<ID>TYU34579354</<ID>
</PERSONRESULT>
Am I approaching this whole thing wrong in using a dataset to fill an
array? Do I have to do something different on the client side so that
it knwo how to receive the list of values.
Any help would be appreciated.
Thanks,
Shawn
I am trying to return a list of ID's to the client requesting the web
service. The list of ID's I want to return is a list of all relating
ID's to the passed in PersonID.
How it currently functions:
Web Service (Server):
I have a basic web service that receives a PersonID. The webservice
then go to the DB to find all relating ID's. Currently I have the
result stored in a dataset. This however may be overkill since the
dataset consists of one datatable, which contains one column.
Client:
The client is a simple .NET page that uses the following to connect to
the webservice. proxy.PERSONREQUEST(PersonID)
I have successfully filled an array and can return one value from the
array using ( txtResult.Text = proxy.PERSONREQUEST(PersonID) ). How
can I return the entire result to the client all at once? I would like
to return it in the format of:
<PERSONRESULT>
<ID>ADS34579354</<ID>
<<ID>ASR34579354</<ID>
<<ID>TYU34579354</<ID>
</PERSONRESULT>
Am I approaching this whole thing wrong in using a dataset to fill an
array? Do I have to do something different on the client side so that
it knwo how to receive the list of values.
Any help would be appreciated.
Thanks,
Shawn