Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 13th, 2005, 08:01 PM
Authorized User
Join Date: Aug 2003
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?

Old September 14th, 2005, 02:46 PM
Authorized User
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts

3 questions:

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?


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 04: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 06: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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.