LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Web Services and XML

Hello i've tried the calculator example wich is located here:http://zone.ni.com/devzone/cda/tut/p/id/7350 i was able to actually see the XML that the web service generate, after that i created a peace of code in PHP to use that webservice and works very well, the problem starts when i decided to create my own vi and web service, i did everithing right (i guess), but i cant access the XML code that should be generated (when i open a browser in the calculator example i can see the xml code) so i've 2 questions:

 

1 - i can i debug labview web services?

2 - one of the things that i need is to my web service is to continually write values that i can keep in a array using PHP in the client side, is that possible?

3 -  using the web services vi pallete is mandatory to implement labview web services (i guess not because the calculator example doesnt really need it)

 

with regards

 

Marcio Ngolo

 

//--PHP code to access the calculator web service

<?php
$x=1;
$y=2;
$url = 'http://localhost/Math/Sum'.'/'.$x.'/'.$y;
$xml = file_get_contents($url);
echo $xml;
?>

 

//--XML code from the calcultor example using X=1 and Y=2

<Response>

<Terminal>
<Name>Z</Name>
<Value>3,000000</Value>
</Terminal>
</Response>

 

P.S.- my project in atachment

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

Hi Marcio,

I didn't arrive to extract youre zip files. The error message is:" this file was compressed using an unknown compression method".
Can you try to repost youre project.

Regards

Yann C.

France

0 Kudos
Message 2 of 6
(3,753 Views)
0 Kudos
Message 3 of 6
(3,743 Views)
 
Download All
0 Kudos
Message 4 of 6
(3,740 Views)
hi im sending the right files without compressing, hope that's help
0 Kudos
Message 5 of 6
(3,739 Views)

Hi,

Thanks for the repost.

unfortunately I didn't find the webservice build specifications in your tzid.lvproj,  I can't check youre builder. Have you try the other example, because I think it's a good step before start your own vi. You can find the example here: Web Services in LabVIEW.

 

With the Sum example, you don't need the Web Service vi pallete. But the second example use Web Services vi pallette.

Try to modify the second example to do a continuous writting.

 

Regards

 

Yann C.

France

0 Kudos
Message 6 of 6
(3,709 Views)