02-14-2010 08:26 AM
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?
Solved! Go to Solution.
02-14-2010 11:58 AM
Hello, in atachment my project. When i run this WS in browser i get:
But when i run WS that i get from http://zone.ni.com/devzone/cda/tut/p/id/7350 it works:
I don´t understand...
Any idea?
02-15-2010 04:37 PM
02-22-2010 07:14 AM
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.
02-22-2010 08:00 AM
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.
02-22-2010 06:25 PM
Hi,
I solved the problem mapping A, B and Z with that says "Important":
Now, Web Service works!
Thanks for last replies and NI support!
02-22-2010 10:49 PM
Hi, Im glad you understood.
How do you deal with it when you have arrays of such input and output ?
02-24-2010 02:15 PM
02-24-2010 03:57 PM
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.
02-24-2010 04:11 PM - edited 02-24-2010 04:12 PM
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.