I have a back-end service layer that needs to communicate with an external service that is accessible through an HTTP POST
.
The external service does not contain a WSDL definition and is not a REST API.
The following HTML code successfully communicates with the external http service:
<html>
<body>
<form enctype="multipart/form-data" action="http://externaladress/fileService/upload"
method="post">
<input type="hidden" name="username" value="username" />
<input type="hidden" name="password" value="password" />
<input type="hidden" name="destinationId" value="10" />
Choose a file to upload: <input name="uploadfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
</body>
</html>
The problem is I am not in the context of a web page, but in the context of a web-service that is running on the back end looking to call said external service.
How can I accomplish this?