Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
| Search | Today's Posts | Mark Forums Read
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 February 22nd, 2007, 04:36 PM
Registered User
 
Join Date: Feb 2007
Location: Karachi, Sind, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amirdiwan
Default Create a DataSet in a Web Service

I want to create a DataSet in a webservice by connecting to it.On the client side, I will display the Dataset in Crystal Reports.Here is the query I wrote which does not work:

SELECT atm_amount,atm_branch,atm_date,balance FROM ATM_Transactions WHERE user_id=Session["UserId"].ToString()

The query builder gives the error:

Incorrect syntax near "UserId"

Is there any way else I could do it? Please tell me the mehtod and the
way I could do it?

Refer to some tutorials and detailed code with explanations.


we|Rd0
 
Old February 22nd, 2007, 04:52 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Sessions work with cookies which are problematic by default in stateless web service calls. There are, however, work arounds that allow you to use cookies and thus sessions. A few terms to use in Google:

stateless web service cookie session .NET

This should give you some useful results.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 03:25 AM
Can't create a web service project! jun1st .NET Web Services 6 April 25th, 2005 07:34 AM
rebind dataset from web service after click button blur_ivy .NET Web Services 2 April 15th, 2005 09:09 AM
Populating Dataset with Web Service jpitzer .NET Web Services 3 July 18th, 2004 02:36 PM





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