LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WebServices labview 2009 -> <Response/>

Solved!
Go to solution
Highlighted

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
(1,602 Views)
Highlighted

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
(1,588 Views)
Highlighted
Anyone?
0 Kudos
Message 3 of 10
(1,558 Views)
Highlighted

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
(1,522 Views)
Highlighted

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
(1,514 Views)
Highlighted
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
(1,502 Views)
Highlighted

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
(1,494 Views)
Highlighted
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
(1,461 Views)
Highlighted

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
(1,448 Views)
Highlighted

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
(1,445 Views)