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
- last edited on
11-06-2024
04:58 PM
by
Content Cleaner
Have you tried "Add Header" to change it?
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/httpclient/addheader-vi.html
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 !