Adrian_S
(Adrian S)
13 March 2014 00:19
1
Hello.
I’m trying to send patient data to /api/persons from Mule. (http://www.dhis2.org/doc/snapshot/en/user/html/ch28s28.html )
I am using SoapUI to test the call.
I have tried to login with these parameters: ?j_username=admin&j_password=district
and got a sessionId : JSESSIONID=2A727AD640759B60FFBE3DDA0C396584.
However, when I use the sessionID for api/persons I get the login form back.
How do I login in correctly to use /api/persons ?
Thanks
Adrian Soria
morten
(Morten Hansen)
13 March 2014 07:34
2
I’m not familiar with SoapUI, but usually we use basic authentication over https, this is probably the easiest solution if you are working with the API.
Also, make sure that you POST the request, and send the key-value pairs as the body…
···
–
Morten
On Thu, Mar 13, 2014 at 1:19 AM, Adrian S adrian.2072@gmail.com wrote:
Hello.
I’m trying to send patient data to /api/persons from Mule. (http://www.dhis2.org/doc/snapshot/en/user/html/ch28s28.html )
I am using SoapUI to test the call.
I have tried to login with these parameters: ?j_username=admin&j_password=district
and got a sessionId : JSESSIONID=2A727AD640759B60FFBE3DDA0C396584.
However, when I use the sessionID for api/persons I get the login form back.
How do I login in correctly to use /api/persons ?
Thanks
Adrian Soria
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp