Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#827888
Hi,

I'm using Anonymous Authentication for Web Entry and build my own login page and system. But after all is passed good, I use wsdl2 to login user.
My first thought was that the problem is because I'm using wsdl2 for logging in users,
But after i used a separate php file to login, everything works fine.
So i think the problem is with Web Entry login and something to do with guest user that first create the Web Entry,
Every time i want to call a REST API i get this:
Code: Select all
{"error":{"code":400,"message":"Bad Request: This case is assigned to another user"}}
I can run processes assigned for the current logged in user, BUT I can't call any REST API methods.

Thanks in advance
Ehsan

SOLVED:
I added
Code: Select all
$_SESSION = []; // clear session

before add new location in HTTP header and using new sid retrieved from wsdl2 login method.

Hope this help someone else :wink:
REST API Question

I am currently looking at developing a portlet for[…]

Everybody wants to be famous, but nobody wants to […]

Hi, I attached a sample config file, Please check […]

Error clicking on Participated

Hi, I attached a sample config file, Please check […]