Link to home
Start Free TrialLog in
Avatar of mmalik15
mmalik15

asked on

how to find record count via web service in c#

From the webserivce http://www.nhs24.com/nhs24_supportgroups.asmx?op=GetGroupById if you enter integer values between 1-6000 in nGroupId field. we get a valid xml record but if we try an integer above 6000 i.e. 6001 or more we get invalid response like below

<groupdetails>
<group>
<errorCode>1</errorCode>
<errorMessage>No results found</errorMessage>
</group>
</groupdetails>

How can we possibly find the valid values for this field or record count
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

There has to be some database logic that goes into retrieving the results.

This has nothing related to sending valid values. i.e more than a certain number(6000 in this case).

If the no. of groups present in the Database is 6000, you will get an such a result when you enter a value more than 6000.
Avatar of mmalik15
mmalik15

ASKER

thanks for the comment.

Are you saying that there is no way to find the record count from the client end before starting the loop to retrieve values?
ASKER CERTIFIED SOLUTION
Avatar of owenacampbell
owenacampbell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial