<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error when consuming SOAP webservice in java Script.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-consuming-soap-webservice-in-java-script/m-p/10095116#M1814346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a CORS error and in a nutshell, it looks like you may not have included '&lt;SPAN style="color: #ff0000; font-size: 12px;"&gt;Access-Control-Allow-Origin&lt;/SPAN&gt;' in your request header.&amp;nbsp; So I would try this first.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Secondly your server may not accept cross origin requests.&amp;nbsp; You may need to get the domain of your originating site added to the list of acceptable domains on that server for requests to that service.&amp;nbsp; I think it also rejects changes in protocol as cross origin, so HTTP making a HTTPS request is not allowed.&amp;nbsp; So watch out for that.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find out a bit more about over here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript#How_to_allow_cross-origin_access" title="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript#How_to_allow_cross-origin_access"&gt;Same-origin policy - JavaScript | MDN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS" title="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS"&gt;https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may just be a problem, if you are testing on a local deployment as your local host will definitely be defined.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp; If you are working in JS and using AJAX, you need to understand this, so take the time to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Katan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 05:43:04 GMT</pubDate>
    <dc:creator>Katan</dc:creator>
    <dc:date>2014-02-07T05:43:04Z</dc:date>
    <item>
      <title>Error when consuming SOAP webservice in java Script..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-consuming-soap-webservice-in-java-script/m-p/10095115#M1814345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please need a help when I am consuming web service in java script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-consuming-soap-webservice-in-java-script/m-p/10095115#M1814345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-06T10:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error when consuming SOAP webservice in java Script..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-consuming-soap-webservice-in-java-script/m-p/10095116#M1814346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a CORS error and in a nutshell, it looks like you may not have included '&lt;SPAN style="color: #ff0000; font-size: 12px;"&gt;Access-Control-Allow-Origin&lt;/SPAN&gt;' in your request header.&amp;nbsp; So I would try this first.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Secondly your server may not accept cross origin requests.&amp;nbsp; You may need to get the domain of your originating site added to the list of acceptable domains on that server for requests to that service.&amp;nbsp; I think it also rejects changes in protocol as cross origin, so HTTP making a HTTPS request is not allowed.&amp;nbsp; So watch out for that.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find out a bit more about over here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript#How_to_allow_cross-origin_access" title="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript#How_to_allow_cross-origin_access"&gt;Same-origin policy - JavaScript | MDN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS" title="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS"&gt;https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may just be a problem, if you are testing on a local deployment as your local host will definitely be defined.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp; If you are working in JS and using AJAX, you need to understand this, so take the time to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Katan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 05:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-consuming-soap-webservice-in-java-script/m-p/10095116#M1814346</guid>
      <dc:creator>Katan</dc:creator>
      <dc:date>2014-02-07T05:43:04Z</dc:date>
    </item>
  </channel>
</rss>

