02-20-2009 11:22 AM
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
02-23-2009 05:05 AM
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
02-23-2009 07:01 AM
02-23-2009 07:13 AM
02-23-2009 07:14 AM
02-25-2009 06:58 AM
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