<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Invoke http://localhost:8080/api/jsonws/invoke result in 403</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121166946" />
  <subtitle>Invoke http://localhost:8080/api/jsonws/invoke result in 403</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121166946</id>
  <updated>2026-04-04T03:56:30Z</updated>
  <dc:date>2026-04-04T03:56:30Z</dc:date>
  <entry>
    <title>Invoke http://localhost:8080/api/jsonws/invoke result in 403</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121166945" />
    <author>
      <name>Fernando Paz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121166945</id>
    <updated>2021-10-04T17:13:31Z</updated>
    <published>2021-09-25T00:19:26Z</published>
    <summary type="html">&lt;p&gt;Hello friends,&lt;/p&gt;
&lt;p&gt;Pls help: I try to call a WebService via:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;Liferay.Service(&lt;br /&gt;         '/foo/update-foo',&lt;br /&gt;     {&lt;br /&gt;  
            &amp;quot;+foo&amp;quot;:
  &amp;quot;com.liferay.impl.FooBean&amp;quot;,&lt;br /&gt;       
   &amp;quot;foo.field1&amp;quot; : &amp;quot;test&amp;quot;,&lt;br /&gt;       
   &amp;quot;foo.field2&amp;quot; : &amp;quot;true&amp;quot;,&lt;br /&gt;       
   &amp;quot;foo.field3&amp;quot;: 123&lt;br /&gt;         },&lt;br /&gt;        
  function(obj) {&lt;br /&gt;             console.log(obj);&lt;br /&gt;        
  }&lt;br /&gt;     );&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;in a JSP page but I get a `HTTP 1.1 403` why?&lt;/p&gt;
&lt;p&gt;BTW when I call to the same web service by
  `http://localhost:8080/api/axis` `WSDL` definition, I can consume it
  with out problems.&lt;/p&gt;
&lt;p&gt;Any Idea pls I I miss some configuration?&lt;/p&gt;
&lt;p&gt;Liferay Portal 7.4.1-ga2&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Fernando Paz</dc:creator>
    <dc:date>2021-09-25T00:19:26Z</dc:date>
  </entry>
</feed>
