Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Advice on a simple application

Reply
Thread Tools

Advice on a simple application

 
 
Stephen
Guest
Posts: n/a
 
      11-17-2003
I am trying to build a very simple app.. two actually but they both do
the same thing to each other.

I need to Compare the data retrieved from the MyApplication to the
data retrieved from MyOtherApplication using Web Services.

I aready have the two apps built and they each will retrieve the
records from the resident DB.. but I now need to expose the data from
one application to the other application using web services.

I believe I just need to write the same code I wrote to pull from my
database but just add it to the Web service... I just don't have the
language at my finger tips

Thank you in advance
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      11-17-2003
..NET does all the hard stuff for you.
From VS.NET start a new project type of "ASP.NET Web Service." Then insert
your code.
So you basically just write your function and let .NET expose it as a web
service for you.
Here's more info:

http://msdn.microsoft.com/webservice...lstudionet.asp
http://msdn.microsoft.com/webservices/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



"Stephen" <> wrote in message
news: m...
> I am trying to build a very simple app.. two actually but they both do
> the same thing to each other.
>
> I need to Compare the data retrieved from the MyApplication to the
> data retrieved from MyOtherApplication using Web Services.
>
> I aready have the two apps built and they each will retrieve the
> records from the resident DB.. but I now need to expose the data from
> one application to the other application using web services.
>
> I believe I just need to write the same code I wrote to pull from my
> database but just add it to the Web service... I just don't have the
> language at my finger tips
>
> Thank you in advance



 
Reply With Quote
 
 
 
 
S Ellen
Guest
Posts: n/a
 
      11-17-2003
Thanks you Steve.. I should have been more specific.. it is the code
that I need to insert that is what is giving me difficulty I know it
must be easy.. but I am not a formal developer...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      11-17-2003
I'd suggest passing a DataSet to the web service to use for your comparison.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



"S Ellen" <> wrote in message
news:...
> Thanks you Steve.. I should have been more specific.. it is the code
> that I need to insert that is what is giving me difficulty I know it
> must be easy.. but I am not a formal developer...
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
S Ellen
Guest
Posts: n/a
 
      11-17-2003

Exactly what i was thinking.. I know you must be getting to that point
of "what is up with this guy..." etc..

What i Have done is reubuilt the dataset I used to display within the
application.. now I know I should be able to reuse the original
dataset... (inheritance being the sexy thing about .net ).

But what i Have is as follows:

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Diagnostics;
using System.Web;
using System.Web.Services;

namespace IASTC_GAIHR
{
/// <summary>
/// Summary description for wsPerson.
/// </summary>

public class wsPerson : System.Web.Services.WebService
{
public wsPerson()

{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeComponent();

}
[WebMethod]
public DataSet personList()
{
string commandString = "Select * from tr_prsn";
string connectionString = "provider=Microsoft.JET.OLEDB.4.0; "
+ "data source = c:\\Inetpub/wwwroot/IASTC_GAIHR/DB/StrawManDB.mdb";
OleDbDataAdapter wsDataAdapter = new
OleDbDataAdapter(commandString,connectionString);

DataSet dsWSDataSet = new DataSet();
wsDataAdapter.Fill(dsWSDataSet,"Persons");


}

Right now I am getting ablue squiggly under the personlist saying "Not
all code paths return a value:" presumably this is talking about the
fact htat i am not retuning anything to the caller of the method
(class?).. thanks again for your help

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A simple Console Application to ASP.NET application Web learner ASP .Net 1 01-27-2006 03:09 AM
Simple advice for a simple photographer wanna be. Kim Digital Photography 10 01-24-2005 04:08 PM
Needed: Advice on Film Scanning, Or Website Which Has This Advice Larry R Harrison Jr Digital Photography 0 09-06-2003 01:00 AM
Re: Celebrity advice (was: Advice to a Junior in High School?) Peter Hansen Python 23 09-05-2003 03:11 PM
Re: Celebrity advice (was: Advice to a Junior in High School?) Asun Friere Python 1 08-27-2003 12:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57