Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
how to Remove this error?
XMLHttpRequest cannot load http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl.
Origin null is not allowed by Access-Control-Allow-Origin.
Posted
Comments
Kuthuparakkal 17-Sep-12 23:46pm    
code plz
ravi1989h 17-Sep-12 23:53pm    
From demo of this url :
http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
change this function ...every thing is fine in IE .but in chrome, firefox error is display .Response is display in IE
function HelloWorld()
{
var pl = new SOAPClientParameters();
pl.add("crsCode", "AAP");
//SOAPClient.invoke(url, "HelloWorld", pl, true, HelloWorld_callBack);
SOAPClient.invoke("http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS", "getDestinationStationDashboard", pl, true, HelloWorld_callBack);
}
function HelloWorld_callBack(r)
{
alert(r);
}
ravi1989h 17-Sep-12 23:58pm    
http://rickluna.com/wp/2012/06/test-cross-domain-ajax-in-chrome/


i also change this setting ...

1 solution

Look at :
http://code.google.com/p/xmlhttprequest/[^]

The above object is built to work on almost all browser.
 
Share this answer
 
Comments
ravi1989h 18-Sep-12 0:06am    
are you talking about this .js ??
can you please help me ..can you please call one method as i said SOAPClient.invoke("http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS", "getDestinationStationDashboard", pl, true, HelloWorld_callBack);
(function () {

// Save reference to earlier defined object implementation (if any)
var oXMLHttpRequest = window.XMLHttpRequest;

// Define on browser type
var bGecko = !!window.controllers;
var bIE = window.document.all && !window.opera;
var bIE7 = bIE && window.navigator.userAgent.match(/MSIE 7.0/);

// Enables "XMLHttpRequest()" call next to "new XMLHttpRequest()"
function fXMLHttpRequest() {
this._object = oXMLHttpRequest && !bIE7 ? new oXMLHttpRequest : new window.ActiveXObject("Microsoft.XMLHTTP");
this._listeners = [];
}

// Constructor
function cXMLHttpRequest() {
return new fXMLHttpRequest;
}
Kuthuparakkal 18-Sep-12 0:34am    
follow : http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900