[GeoNetwork-devel] Calling mef.import - Parameters?

Hello,

I have a process that I am developing which requires 'insert metadata from
file' functionality. The mef.import service looks perfect for my needs, but
I cannot get it to work for me. The documentation says all it needs is an
'mefFile' parameter, but I cannot get this to work. Looking at the code add
the request posted by mef.import.ui, I assume that this service is expecting
multipart parameters. If so, how do I supply these? What format should the
parameters be in?

Thanks in advance.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calling-mef-import-Parameters-tp6979446p6979446.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Byron,

I had the same problem before. If you are calling this service from a web
page, you can try with the following code added to the body of your HTML
page.

<form id='sampleform1' method='post'
  enctype="multipart/form-data"
  action='http://localhost:8080/geonetwork/srv/en/mef.import’>

   <p>

   File: <input type='file' name='mefFile' />

   </p>

   <p>

   <input type='submit' name='Submit' value='Send' />

   </p>

</form>

That is pretty much what you need to import a mef file via the web page.

I have got no clue if you are working with other implementations like
command line or java applet. Some one else might be able to help.

Cheers, Alex

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calling-mef-import-Parameters-tp6979446p6995145.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.