← Back to team overview

dhis2-devs team mailing list archive

Re: Testing /api/persons

 

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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References