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
| FAQ | Members List | Calendar | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 15th, 2006, 06:01 AM
Registered User
Join Date: May 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default c# web service execute remote command?


I want to devolop a web service using c#, that should take command as input and execute it on remote machine.

could you please help me how to start this? And please provide me c# material that helps to access remote machine.

Thanks in advance.

Reply With Quote
  #2 (permalink)  
Old May 24th, 2006, 07:05 AM
Registered User
Join Date: Jan 2006
Location: , , Pakistan.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I have a similar problem, I want to make a web service who has a web method which can take an SqlCommand object as an argument. But I guess this isn’t possible without serializing the SqlCommand object first.

Ideally I want this:

public int HelloCommand(SqlCommand Command)
this.Command = Command;

return Command.ExecuteNonQuery();

When I make this method in web service, it compiles successfully but when I update my web reference in client application it gives some weird error message saying something like:

Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.Component.ISite because it is an interface.

Can somebody help?


Reply With Quote

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
can not connect to the web-service remote server? okll .NET Web Services 4 May 24th, 2006 06:08 PM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
Hoe Can I Execute an exe file in my web service? ROnak Classic ASP Basics 1 September 14th, 2004 12:09 AM
Sychronous remote call to web service using DHTML ehtesham .NET Web Services 2 August 18th, 2004 04:11 AM
Execute method of web service, about database? hueduongit .NET Web Services 3 December 3rd, 2003 03:18 AM

All times are GMT -4. The time now is 10:53 PM.

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