Hi All, Iam trying to call a SOAP service using prototype. The service throws a error when the request header ''Content- Type = application/x-www-form-urlencoded'' Hence i want to overide that functionality. I used the following code for that. function makeWSCall(){ var opt = { method: ''post'', requestHeaders: [''Content-Type'',''text/ xml;charset=UTF-8'',''SOAPAction'',''""''], postBody: xmlDocument, // Handle successful response onSuccess: function(t) { alert(t.responseText); }, // Handle 404 on404: function(t) { alert(''Error 404: location "'' + t.statusText + ''" was not found.''); }, // Handle other errors onFailure: function(t) { alert(''Error '' + t.status + '' -- '' + t.statusText); } } new Ajax.Request(url, opt); } when i do this the request header looks like this... "Content-Type: application/x-www-form-urlencoded; charset=UTF-8, text/ xml;charset=UTF-8" How do i make it my own content type ? as follows "Content-Type: text/xml;charset=UTF-8" Iam quite new to Javascript and Prototype. Please help me out. Thanks Vignesh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---