LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Http/webservice client error

Solved!
Go to solution

Hi Sir, 

 

When i set the webserver, then use the client to connect, report the error as below:

Need any password setting ?

Thanks.

 

Brzhou_1-1679146447360.png

 

 

Learning from other people
0 Kudos
Message 1 of 8
(1,213 Views)

 

Report this error, not sure why, thanks.

 

Brzhou_0-1679232497039.png

 

Learning from other people
0 Kudos
Message 2 of 8
(1,160 Views)

You're likely trying to call a handler with POST but it's configured to respond to GET with query parameters. When doing a GET request you just append the values to the end of the URL after a '?'

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 3 of 8
(1,146 Views)

Hi Sir, 

 

Sorry, not quite understand.

But from below snapshot, it means the web server configuration is not correct ?

Thanks.

Brzhou_0-1679493100608.png

 

Learning from other people
0 Kudos
Message 4 of 8
(1,114 Views)

wsport.png

 What setup are you expecting? How are you launching the web service?

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 5 of 8
(1,105 Views)

Hi Sir, 

 

I just try to simulate some scenario:

 

in factory tester station, we use labview for coding, and  try to communicate with IT system:

 

1. post some test data to IT server;

2. get some serial number related info from IT server;

 

That is all i want to try, thanks.

Learning from other people
0 Kudos
Message 6 of 8
(1,102 Views)
Solution
Accepted by Brzhou

You didn't answer either of the questions I asked.

 

You're trying to pull up the webservice on port 8080 instead of the 8001 that the URL dialog is showing, why are you expecting to access it on 8080 instead of 8001?

 

How have you started/deployed the web service from the LabVIEW project?

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 7 of 8
(1,097 Views)
Solution
Accepted by Brzhou

Hi Sir, 

 

I reviewed the code:

1. need to set server to post as well;

2. for client, need use local URL;

3. need to define the input and output for server vi;

 

After the above changes, it works now, thanks.

 

 

Brzhou_0-1679580804256.png

 

Learning from other people
0 Kudos
Message 8 of 8
(1,078 Views)