← Back to team overview

dhis2-devs team mailing list archive

Re: Ask importing from web API

 

Hi lars,

I go through follow your guideline. and I got problem below.

could you help me what is problem, how can I solve it?


=============================
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.


C:\Program Files (x86)\Gow\bin>curl -d @metaData.xml "localhost:8080/dhis2.15-ol
d/api/metaData" -H "Content-Type:application/xml" -X POST -u admin:district -v


* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> POST /dhis2.15-old/api/metaData HTTP/1.1
> Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
> User-Agent: curl/7.27.0
> Host: localhost:8080
> Accept: */*
> Content-Type:application/xml
> Content-Length: 3718653
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Language: en
< Content-Length: 1001
< Date: Tue, 01 Jul 2014 08:32:44 GMT
* HTTP error before end of send, stop sending
<
<html><head><title>Apache Tomcat/7.0.54 - Error report</title><style><!--H1 {fon
t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgro
und-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;col
or:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:w
hite;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;backgroun
d:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /dhis2.15-old/a
pi/metaData</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><
p><b>message</b> <u>/dhis2.15-old/api/metaData</u></p><p><b>description</b> <u>T
he requested resource is not available.</u></p><HR size="1" noshade="noshade"><h
3>Apache Tomcat/7.0.54</h3></body></html>* Closing connection #0


C:\Program Files (x86)\Gow\bin>
=======================================================


thank you





From: Lars Helge Øverland
Sent: ‎Tuesday‎, ‎July‎ ‎01‎, ‎2014 ‎4‎:‎24‎ ‎Evening
To: channara rin
Cc: DHIS 2 Developers list, DHIS 2 Users list





Hi Channara,



these sections are recommended from the web api docs:




https://www.dhis2.org/doc/snapshot/en/user/html/ch31s05.html


https://www.dhis2.org/doc/snapshot/en/user/html/ch31s08.html





regards,




Lars










On Tue, Jul 1, 2014 at 10:41 AM, channara rin <rin.channara@xxxxxxxxx> wrote:




Hi all developer, users of DHIS2,

i would to ask if i am already export metaData from dhis2 import-export function. and then i would import through web API. how can i do?

thank you
channara

_______________________________________________
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