LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web service String Control

Solved!
Go to solution

 

Hi
I have build and deploy Labview VI's as Web Serice
When my Input Control is a "String" the applications do not work(It works when the input control is a number)
 
The message I get is :"This XML file does not appear to have any style information associated with it. The document tree is shown below."
 
Does any one familiar with the issue?
Thanks....Eran
0 Kudos
Message 1 of 12
(5,027 Views)

Can you post a screenshot of your webservice VI and its configuration in the Application Builder build specifications?

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 12
(5,012 Views)

Hello Chris

Attached is a picture of my front panel and block diagram.

Thanks....Eran

0 Kudos
Message 3 of 12
(5,002 Views)

Eran,

 

Please confirm 2 things:

 

1) That NameID is mapped to the connector pane and NOT Data Array.  The VI will not work with Data Array because arrays are not allow for terminal inputs and the name of the control cannot have a space in it.

 

2) That the label for NameID does NOT have any spaces in it.  This will mess things up considerably.

 

Finally, you might consider that the VI is only sort of working you are just not getting any outputs as you suspect (i.e. your output string are blank).  I assume that the output mode you have chosen is XML?

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 12
(4,989 Views)

Hello Chris

Thanks for your answer

1) The terminal is the NameID string

2) There are no space in the string

3) Yes, I use the XMS

 

However it does not work

Eran

0 Kudos
Message 5 of 12
(4,983 Views)

Eran,

 

Did you confirm that your VI is actually outputting a string value?

 

The easiest way to test would be to use a string constant as your output instead of the result of your calculations and see if the VI fails in the same manner.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 6 of 12
(4,960 Views)

Hi Chris

Yes the VI operate well and I tested the Web Service Application with a constant and with a number input terminal

Attached is the the project

Thanks for your support

Eran

0 Kudos
Message 7 of 12
(4,954 Views)

Sorry, I don't have LV 2012.

 

Did you test with a constant string output (not different input)?

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 8 of 12
(4,929 Views)

Hello Chris

This issue is interesting since the NI support in my region could not help me.

Yes I have done it and it worked well

should I use quotes "string" or <string>?

I believe that the solution is simple but I do not find it

Thanks...Eran

0 Kudos
Message 9 of 12
(4,924 Views)
Solution
Accepted by Eran65

So I'm still not convinced that your code is returning a string since it sounds like the only way you've tested it is with numeric inputs (which require different logic to return a string).

 

Here's a quick web method that I threw together to prove that input and output of strings works in terminal mode.

 

Block Diagram.PNG

 

Build Spec.PNG

 

output.PNG

 

Works just fine for me.  I am in LV 2011 SP1, but I would be very surprised if this is a bug with LV 2012.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 10 of 12
(4,906 Views)