07-23-2015 08:18 AM
Hi !
Using the POST HTTP vi to send SOAP requests to a device, I ran into an issue.
POST HTTP vi take care of the HTTP header for you, and sets the 'content type' as "Content-Type: application/x-www-form-urlencoded". Which is treated as 'non-soap' requests by some webservers.
The W3C norms says in that case the content-type you should be : 'application/soap+xml' !
Link to the W3C norm page : http://www.w3.org/TR/soap12-part0/#L26866
Who it be possible to update this function in a future release so that programmers can choose (or type) the needed content type ?
Solved! Go to Solution.
07-23-2015 07:51 PM - edited 07-23-2015 07:55 PM
Have you tried "Add Header" to change it?
http://zone.ni.com/reference/en-XX/help/371361L-01/lvcomm/http_client_addheader/
07-24-2015 07:12 AM
Nice suggestion, it works !
The VI name confused me, I tuoght it was only to add fields in a header, not modifying an existing one.
Thanks !