LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue when using SOAP requests with HTTP POST function

Solved!
Go to solution

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 ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 3
(3,532 Views)
Solution
Accepted by topic author CyGa
Message 2 of 3
(3,485 Views)

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 !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
Message 3 of 3
(3,430 Views)