I have a web service (asmx) that the Read method accepts a parameter (name).
The webservice is installed on Win / IIS.
- If the aspx page that calls the webservice is installed in IIS: everything works.
- If the aspx page that calls the webservice is installed on Linux / Mono / Apache calling the webservice is not running, without reporting anything.
- If the aspx page and webservice is installed on Linux / Mono / Apache calling the webservice is not running, without reporting anything.
The web methods without parameters work properly in both installations.
Suggestions?
--- aspx ----
read: {
url: "TipologiaRimborso.asmx/Read",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json",
data: { name: "test" }
},
parameterMap: function (options) {
return JSON.stringify(options);
}
----- asmx --------
WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[ScriptService]
public class TipologiaRimborsoWS : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<TipologiaRimborso> Read(string name)
{
......
....
}
The webservice is installed on Win / IIS.
- If the aspx page that calls the webservice is installed in IIS: everything works.
- If the aspx page that calls the webservice is installed on Linux / Mono / Apache calling the webservice is not running, without reporting anything.
- If the aspx page and webservice is installed on Linux / Mono / Apache calling the webservice is not running, without reporting anything.
The web methods without parameters work properly in both installations.
Suggestions?
--- aspx ----
read: {
url: "TipologiaRimborso.asmx/Read",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json",
data: { name: "test" }
},
parameterMap: function (options) {
return JSON.stringify(options);
}
----- asmx --------
WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[ScriptService]
public class TipologiaRimborsoWS : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<TipologiaRimborso> Read(string name)
{
......
....
}