https://bugzilla.novell.com/show_bug.cgi?id=384236
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=384236#c1 vadiraj c s <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED], [EMAIL PROTECTED] Priority|P5 - None |P1 - Urgent --- Comment #1 from vadiraj c s <[EMAIL PROTECTED]> 2008-04-28 00:04:41 MST --- here is the small server snippet that we use as WebMethod in ZMD. using System; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; using Novell.Zenworks.Utility; using Novell.Zenworks.Zmd; using Novell.Zenworks.Zmd.Public; using log4net; namespace Novell.Zenworks.Zmd.Remote { [Module] public class Server { public static ModuleInfo ModuleInit () { return new ModuleInfo ("ZENworks Server", "Novell, Inc", GettextCatalog.GetString ("SOAP methods used by a ZENworks server"), "GPL"); } [WebMethod, Privilege ("view")] public string Ping () { return String.Format ("pong"); } } } The wsdl that is used to call this is pasted below. /// <remarks/> [System.Web.Services.WebServiceBinding(Name="ServerSoap", Namespace="http://tempuri.org/")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public class Server : System.Web.Services.Protocols.SoapHttpClientProtocol { public Server() { this.Url = "http://localhost:5505/zmd/Server.asmx"; } [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Ping", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public string Ping() { object[] results = this.Invoke("Ping", new object[0]); return ((string)(results[0])); } } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs