views:

57

answers:

0

Hi all,

i need to test a java webservice in webmethods server receiving files.

to achieve that i just create a simple HTML form :

<html>
<body>

<h2>ServiceRequest - File upload</h2>

<form method="post" action="url/invoke/webservice" enctype="multipart/form-data"> 
    <input type="file" id="mime"  name="mime"> </br></br>
    <input type="submit" value="submit">   </form>

</body>
</html>

the problem i'm facing is that when i submit the form i just POST the file path and not the file.

any ideas of how can i post the file ?

Thanks !