//url: this is a reference to the XML, where you need to define the mapping.
//<entry key="/getEmpDetails/transEfileGenerate.app">
//<bean class="com.adp.ems.framework.spring.MappingItem" p:delegate-ref="efilePageDelegate"
//p:action="passJSONObjectAndGetWebServiceOutput" />
//str1 is the input JSON that you need to pass... Ajax will automatically take care to get the response.
//</entry>
var kw = {
url : "getEmpDetails/transEfileGenerate.app",
timeout : 30000,
handleAs : "json",
sync: false,
putData : str1,
headers: { "Content-Type": "application/json"},
load : function(result) {
},
? – 2009-11-17 14:37:26
我使用期望JSON的Couchdb。 – 2009-11-17 14:43:18
AJAX PUT *可在所有主流瀏覽器中使用。 HTTP PUT不是。所以在這種情況下,使用PUT是很好的(推薦,甚至是)。 – 2013-07-02 19:39:37