[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ksoap: WebService in .Net, Client in Java -> Parameters from Client to Service "0"


Citando René Kaiser <renekaiser@hotmail.com>:

> Hello !
> I've got the following problem:
> 
> The webservice
> 
> [System.Web.Services.WebMethod]
>    public int Add(int i, int j) {
>    return i + j;
> }//Add
> 



Just try putting this line in the webservice:
    
    [System.Web.Services.WebMethod]
    [System.Web.Services.Protocols.SoapRpcMethod]
    public int Add(int param1, int param2) {
        return param1+param2;
    }


I had the same problem and that did the trick. Thanks Steve Porter for the tip.