[Mono-bugs] [Bug 384236] System.Web.Service call WebMethod not working

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 28 02:04:42 EDT 2008


User csvadiraj at novell.com added comment

vadiraj c s <csvadiraj at novell.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |miguel at novell.com, kdhinesh at novell.com
           Priority|P5 - None                                       |P1 - Urgent

--- Comment #1 from vadiraj c s <csvadiraj at novell.com>  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 {

    public class Server {

        public static ModuleInfo ModuleInit () {
            return new ModuleInfo ("ZENworks Server",
                                   "Novell, Inc",
                                    GettextCatalog.GetString ("SOAP methods
used by a ZENworks server"),

        [WebMethod, Privilege ("view")]
        public string Ping () {
            return String.Format ("pong");

The wsdl that is used to call this is pasted below.

/// <remarks/>
public class Server : System.Web.Services.Protocols.SoapHttpClientProtocol {

    public Server() {
        this.Url = "http://localhost:5505/zmd/Server.asmx";

    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.

More information about the mono-bugs mailing list