Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| 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 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 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?

Hi,

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.

chintu
 
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
Default

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:

[WebMethod]
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?

Thanks,
Mukarram.





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





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