Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Webservice Help Please?Webservice Help Please?
Previous
 
Next
New Post
10/12/2009 11:36 AM
 

Hi,

I was hoping someone might be able to help me please?

I am trying to extend the IWeb Webservice Module to add my own functionality. I have had a lot of success and have so far managed to add functions that update my database tables. But, I now want to be able to return a recordset of data and populate an object in a windows mobile application.

So far I have created the stored procedure and tested it. It returns a recordset of 1 row, which is fine.

In the SqlDataProvider.vb I have added the following code:

Public

Overrides Function IWeb_TaxiRoute_Get_List_Of_Fares() As IDataReader
Return CType(SqlHelper.ExecuteReader(ConnectionString, DatabaseOwner & ObjectQualifier & "IWeb_GetListOfTaxiFares"), IDataReader)
End Function

And in the DataProvider.vb I have added the following code:

Public

MustOverride Function IWeb_TaxiRoute_Get_List_Of_Fares() As IDataReader

I have then created the following function in my Mobile Application:

Dim ws As New TaxiRoute.TaxiRoute_Webservice.WebService()
ws.IWebAuthendicationHeaderValue = IWebAuthendication.AttachCredentials()
Dim dataReader As IDataReader = ws.TaxiRoute_Get_List_Of_Fares()
While dataReader.Read()
Console.WriteLine(String.format("{0}, {1}", dataReader(0), dataReader(1)))
End While
dataReader.Close()

I am completely lost to be honest. I have a feeling I also need to add something to the Conroller.vb file but I have no idea what.

Can anyone please give me some help?

Many thanks

Trev


www.taxiroute.co.uk - Get a Fare Price!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Webservice Help Please?Webservice Help Please?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out