LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP post request

Solved!
Go to solution

Hi everyone,

 

I am new with labview webservices and i have to realize a communication between a java app and a labview webservice. The aim is to send a text and save it with the webservice.

I tried something for the webservice part, it seems i succeeded in deploying it but i can't extract any text. I join my "post.vi".

For test purpose i used  an http form :

<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="http://localhost:8080/Webservice/post">
<INPUT TYPE="text" NAME="nom" /><BR />
<INPUT TYPE="submit" VALUE="Submit" />
</FORM>

 

Thanks in advance for every advice you will give me

0 Kudos
Message 1 of 6
(3,122 Views)

I can't see in your VI, you connected httpRequestID control to connector pane, which is required.

Message 2 of 6
(2,887 Views)
Thank you, I completely forgot about that ! Now i can receive the answer of my http request , but i'm still unable to receive any string. I receive httpRequestID out=0 but i have no clue if it's bad news or good news.
0 Kudos
Message 3 of 6
(2,880 Views)

Post.PNG

Here is my VI, now the connection works fine but "value" is still blank.

 

Thank a lot for your help

0 Kudos
Message 4 of 6
(2,868 Views)

Capture2.PNG

I tried also this, but I still have nothing for the values of my post request. I read all I could read for the webservice part on NI website but I'm still unable to deploy this simple webservice. I really would like to learn labview but it seems I can't progress in the webservice part.

 

The communication works great, I have an answer from the VI but no value. Any help or information would be helpful.

 

Thanks

0 Kudos
Message 5 of 6
(2,858 Views)
Solution
Accepted by topic author Codll

Ok, so i finally resolve my problem.

 

If it can help, here is the solution. It seems that the label input for httpRequestID only accept "httpRequestID" , no 2 or whatever. Beginner's mistake, but we're all learning.

 

 

So it works now.

0 Kudos
Message 6 of 6
(2,850 Views)