Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services 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 Search this Thread Display Modes
  #1 (permalink)  
Old February 18th, 2005, 08:32 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default Updation of Online Data

Hi to all

I have created a web method in my web service which updates the online data base from the offline database. My method is recieving the data which i am sending from another application [ i dwelled around my code to verify this] but my data adapter is not updating the database. the code goes like this,
================================================== ==================
 <WebMethod()> Public Function UpdateOnlineData(ByVal newDS As DataSet) As String
        Dim msg As String

        'MyOnlineDS is a datset containing the schema of the table to be updated
        Dim OnlineDS As DataSet = New MyOnlineDS()

        Try

            OnlineDS.Merge(newDS)
            OnlineDS.AcceptChanges()
            MyDa.Update(OnlineDS)
            msg = "Successfull Update of " & OnlineDS.Tables(0).Rows.Count & "Rows"
            'The message is returning the total rows which has been sent to the web service and being merged in the online dataset

        Catch ex As Exception
            msg = "Error:" & vbCrLf & ex.Message
        End Try

        Return msg
    End Function
================================================== ===================

Can any one suggest any conceptual error in the code or some other way to achieve this?

Anubhav Kumar
__________________
Anubhav Kumar
http://anubhavtimepass.blogspot.com/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
help in updation sanjeev jha Classic ASP Basics 0 November 12th, 2007 04:17 AM
how to execute the cursor for online data entries madhuri.sirsat SQL Server 2000 2 April 13th, 2005 11:03 PM
Online Updation qazi_nomi Classic ASP Basics 12 September 24th, 2004 07:26 PM



All times are GMT -4. The time now is 07:49 AM.


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