From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WebServices labview 2009 -> <Response/>

Solved!
Go to solution

Hello, i build a web service as http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/web_service_ex/ that get the sum of two values. When i call:

 

http://localhost/mywebservice/add/2/3

 

the response of XML is: "<Response/>" and not a valid XML with the sum.

 

Why?

0 Kudos
Message 1 of 10
(3,658 Views)

Hello, in atachment my project. When i run this WS in browser i get:

 

 img1.png

 

But when i run WS that i get from http://zone.ni.com/devzone/cda/tut/p/id/7350 it works:

 

img2.png

 

 

I don´t understand...

 

 

Any idea?

0 Kudos
Message 2 of 10
(3,644 Views)
Anyone?
0 Kudos
Message 3 of 10
(3,614 Views)

Hi, all you need to do is connect the controls and the indicators at the connector pane in the original application. The same way you do while calling a subVI.

 

Hope this helps.

 

 

Message 4 of 10
(3,578 Views)

Hello Sreedhar T, thanks for reply but i don´t understand you because a i don´t call a sub VI and my VI is equal as the VI example of NI that works.

 

Can you take in my project (last post with attachment) and explain this?

 

Thanks.

0 Kudos
Message 5 of 10
(3,570 Views)
Solution
Accepted by topic author PedroTeixeira1985

Hi,

 

I solved the problem mapping A, B and Z with that says "Important":

 

sum.JPG

 

Now, Web Service works!

 

Thanks for last replies and NI support!

0 Kudos
Message 6 of 10
(3,558 Views)

Hi, Im glad you understood.

 

How do you deal with it when you have arrays of such input and output ?

0 Kudos
Message 7 of 10
(3,550 Views)
I have the same problem. But I use the Write Response.vi, and get a blank response, as mentioned earlier. I'm surprised, because I have used this approach, I used the Flex + LabVIEW.
0 Kudos
Message 8 of 10
(3,517 Views)

Hello Selentium,

 

I think that you need map the response in the right square. Your example don´t have anithing maps in right...

 

In my example i had 2 left squares (two numbers) and 1 right square (the sum).

 

Good luck.

0 Kudos
Message 9 of 10
(3,504 Views)

I used the same approach as in the example from NI. And I have already created a similar application, but this time I have returned an empty response. And I can not find a solution to this problem.

Message Edited by Silentium on 02-24-2010 04:12 PM
0 Kudos
Message 10 of 10
(3,501 Views)