http://testwww.irc.gov.ua/ua/Poshuk-v-YeDR.html
http://irc.gov.ua/upload/edrapi_manual.pdf
http://testwl.irc.gov.ua:7003/EDRAPI/ws?WSDL
http://myrusakov.ru/javascript-post.html
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://edrapi_ws/">
<SOAP-ENV:Body>
<ns1:plsqlSearchByCode>
<code>38890933</code>
<type>2</type>
<login>10000024</login>
<password>10000024</password>
<PassportNomer></PassportNomer>
<PassportSeria></PassportSeria>
</ns1:plsqlSearchByCode>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
login i pass: 10000035
https://ru.wikipedia.org/wiki/WSDL
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://edrapi_ws/">
<SOAP-ENV:Body>
<ns1:plsqlSearchByCode>
<code>35442481</code>
<type>2</type>
<login>10000035</login>
<password>10000035</password>
<PassportNomer></PassportNomer>
<PassportSeria></PassportSeria>
</ns1:plsqlSearchByCode>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
i am developing a simple script for accessing a web-service. I do a request from my javascript, but firefox blocks this request and in console writes "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.guru4.net/articoli/javascript-soap-client/demo/webservicedemo.asmx?wsdl. This can be fixed by moving the resource to the same domain or enabling CORS." How to enable this fucking CORS in firefox?
ReplyDeleteДоброго дня, уважаемые господа разработчики
ReplyDeleteв рамках изучения темы веб-сервисов пишу простейший клиент на javascript, для получения данных. к сожалению, глупые браузеры блокируют запрос ссылаясь на абстрактные требования безопасности. можно ли в браузерах преодолеть этот встроенный дефект или же может есть браузер где это все нормально работает без танцев с бубном
ответ тормозной оперы "Uncaught exception: ReferenceError: Security violation
Error thrown at line 130, column 1 in (url, method, parameters, async, callback) in file://localhost/C:/Temp/soapclient21.js: "
ответ безумного файерфокса "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.guru4.net/articoli/javascript-soap-client/demo/webservicedemo.asmx?wsdl. This can be fixed by moving the resource to the same domain or enabling CORS."
ответ обдолбанного хрома "XMLHttpRequest cannot load http://www.guru4.net/articoli/javascript-soap-client/demo/webservicedemo.asmx?wsdl. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. index.html:1
Uncaught TypeError: Cannot read property 'documentElement' of null "
firefox: about:config -> security.fileuri.strict_origin_policy -> false
ReplyDelete