473,800 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Advice on a simple application

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 MyOtherApplicat ion 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
Nov 18 '05 #1
4 995
..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" <se****@deloitt e.com> wrote in message
news:bb******** *************** **@posting.goog le.com...
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 MyOtherApplicat ion 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

Nov 18 '05 #2
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!
Nov 18 '05 #3
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" <se****@deloitt e.com> wrote in message
news:Oc******** ******@TK2MSFTN GP09.phx.gbl...
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!

Nov 18 '05 #4

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.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Data.Ole Db;
using System.Diagnost ics;
using System.Web;
using System.Web.Serv ices;

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

public class wsPerson : System.Web.Serv ices.WebService
{
public wsPerson()

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

}
[WebMethod]
public DataSet personList()
{
string commandString = "Select * from tr_prsn";
string connectionStrin g = "provider=Micro soft.JET.OLEDB. 4.0; "
+ "data source = c:\\Inetpub/wwwroot/IASTC_GAIHR/DB/StrawManDB.mdb" ;
OleDbDataAdapte r wsDataAdapter = new
OleDbDataAdapte r(commandString ,connectionStri ng);

DataSet dsWSDataSet = new DataSet();
wsDataAdapter.F ill(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!
Nov 18 '05 #5

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

Similar topics

5
4042
by: nmac | last post by:
Hi all, hopefully someone can offer some sagely advice regarding Production use of Jakarta's Tomcat. First, some brief background. My company have a servlet application that connects to a MySQL database. The servlet is deployed on two seperate win2k servers (Access to the tomcat servers is via DNS round robin load balancing). The database is on a another win2k server.
4
2217
by: Socheat Sou | last post by:
After a brief, but informative, discussion on Freenode's #zope chatroom, I was advised to consult the gurus on c.l.p. I'm working for a small company who is in desperate need to rewrite it's 15+ year old, flat-file, client-tracking database. The staff uses OSX, while I administer the couple linux servers we have to run our website and some internal sites. In our initial brainstorming session, we decided to go with a Python backend...
5
1738
by: Steve_CA | last post by:
Hello all, I've been recruited to assist in diagnosing and fixing a performance problem on an application we have running on SQL Server 7. The application itself is third party software, so we can't get at the source code. It's a Client Management system, where consultants all over the country track their client meetings, results, action plans, etc. , and has apparently been problematic for a long time now. I came into this...
3
2195
by: Andy Dingley | last post by:
I've just started on a new project and inherited a huge pile of XSLT (and I use the term "pile" advisedly !) It runs at glacial speed, and I need to fix this this. Platform is MSXML 4 / ASP Any advice on benchmarking tools / techniques ? I have no budget for tool-building, so if there's anything already out there, that would be good to know.
0
279
by: Mark Stokes | last post by:
Hi there, I wanted a bit of advice on a program (a prototype) that I am trying to write that uses threads. I will outline what I am attempting to do, and if anyone has any advice on the way I am trying to work I would be most grateful. I am writing a windows forms application. This application defines a class, lets call this myObject. I instanciate objects of this class and store the myObjects in an ArrayList.
5
1797
by: Nick Malik | last post by:
reposting to a wider audience "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message news:WYONc.203854$XM6.119642@attbi_s53... > My turn to ask a question > > I am working on a plug-in for Sharepoint that will allow a developer to add > workflow rules. One of the rules will inform the adapter that it should > load a DLL that the developer writes, find a method that matches a
4
1433
by: Nick Malik | last post by:
My turn to ask a question I am working on a plug-in for Sharepoint that will allow a developer to add workflow rules. One of the rules will inform the adapter that it should load a DLL that the developer writes, find a method that matches a particular interface, and call it. I know, in general, I should be looking at the reflection classes. Does anyone have any design advice for me, or good working examples that would serve as a...
1
9660
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
13
3116
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those sorts of clients. Mine are all small businesses whose sites will never reach those sorts of scales. I deal with businesses whose sites get maybe a few hundred visitors per day (some not even that much) and get no more than ten orders per day....
9
1431
by: Duncan Smith | last post by:
Hello, I find myself in the, for me, unusual (and at the moment unique) position of having to write a web application. I have quite a lot of existing Python code that will form part of the business logic. This relies on 3rd party libraries (such as numpy) which would make porting to e.g. IronPython difficult (I would imagine). I was thinking LAMP (the P standing for Python, of course), particularly as I was originally encouraged to go...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.