[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


https://bugzilla.novell.com/show_bug.cgi?id=384236

User csvadiraj at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=384236#c1


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 {

    [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.


More information about the mono-bugs mailing list