Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.††If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 13th, 2005, 08:01 PM
Authorized User
 
Join Date: Aug 2003
Location: Mil, WI, Saint Barthelemy.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a web service in ASP.NET

I have an asp.net page called default.

The page has 3 fields: patientid, userid and resourceid.


I need to develop a web service that will use the patientid and resourceid fields to query a table called resource. The resource table contains the following fields:

Resourceid,resource,patientid,recorded and resourcefile.

The web service should use the patientid and resourceid parameter from the default.aspx page and display the resourcefile which is an image data type on an image.aspx file.

The userid parameter should be used to track who accessed the resource file and should update a log table which has the following fields: userid, patientid and resourceid and datetime.

I have not developed a webservice before how would I go about doing this?


Sanjeet
__________________
Sanjeet
Reply With Quote
  #2 (permalink)  
Old September 14th, 2005, 02:46 PM
Authorized User
 
Join Date: Aug 2003
Location: Mil, WI, Saint Barthelemy.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

3 questions:


1.
I have created a web service to handle the database functionlity. I need to pass three parameters to the web service:
userid, patientid and resourceid. function should return an Image data type.
I get an error message stating: Key word is not a valid identfier. This

 <WebMethod()> _
    Public Function RetreiveImage(string userid,string patientid,string resourceid) As String

    End Function



2. After I retreive the image data type I need to update a log table in the database. Can I do this within the same function?

3. The sql statement should query based on patient and resource id. How do I pass the paramters in the embedded sql?

Sanjeet
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Callling cmd from ASP.NET web service Earl Hickey ASP.NET 2.0 Basics 2 December 5th, 2007 03:46 PM
publish asp.net site functionality as web service amzar .NET Web Services 2 August 14th, 2007 11:26 PM
Problem with creating ASP .NET web app/service reye VS.NET 2002/2003 1 December 28th, 2006 05:10 AM
ASP.NET COM Wrapper for Web Service ashettleroe Classic ASP Professional 0 August 12th, 2005 05:30 PM
Problem creating new ASP.NET web Application krishnabhargav VS.NET 2002/2003 5 July 10th, 2004 07:47 AM



All times are GMT -4. The time now is 06:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.