Tips for creating an application with web services please?

I created a simple application for a client who interacts / monitors a device VISA with LV 2009.  The architecture is essentially a state machine with a timeout for VISA calls that retrieve the current state.

The client asked that the app will also be controlled via the web and asked me to set up a demo with one or two simple functions.  I have the experience to bring charges against the Server Web LV7 model, but not with web services.

So here's what I did...

(1) added a line to my application that would inject actions in the state machine.

(2) created a simple VI pushes these actions in the queue and plans to use it as the Web Service.

And then I followed the examples for Web Services, thinking that the Web server is running in the same program as the development environment, such as the version LV7.  This doesn't seem to work.

Could someone give me a quick overview on how best to do that, or to report an article?  I have simple working WS, but here are a few questions...

@ Jed Davidow:

We met this difficulty with our web app (LV 2009) as well.  Because now we feel the solution the easiest way is to activate the VI server in your main application (EXE) VI and place calls to its hierarchy of web services in the open Application > VI Open > call by Ref > close VI > structure to close the Application.

Although we try to minimize the use of the present in web services, it makes sense for some resources shared and accessible throughout the world as references to database, configuration globals, etc.

I also note that there seems to be an instability that we have not been able to identify which may (or not) be attributed to the use of this technique.  The symptom is LabVIEW from memory immediately at some point.

I am currently looking into migration towards 2010 LV, and it seems that the same constraints between instances of the application are in place.  I expect that, but I was expecting some more simplified with the next version of LV interprocess communication methods.

--

James

Tags: NI Software

Similar Questions

  • Tips for creating the responses with different line heights

    Some of my answers have 1 line, some have 2, some even 3 lines. Any recommendations on configuring my Quiz slide so that the boxes to resize automatically?

    Currently, I have two problems:

    (1) I need layout manually each slide where one or more of the answers takes more than 1 line. It takes some time.

    (2) I can't use "shuffle answers", because the response of the 3 line is sometimes it's original space, and sometimes it's a line a line of response high.

    Any advice?

    I try to avoid long sentences in MCQ, but if it is necessary to have several lines (you can also reduce the size of the police) and I want to shuffle is my workflow:

    • Select the legend of response with the greatest height
    • Jointly select the other legends of the response, and then in the context menu, choose Aligh, resize at same height
    • increase the height of the surrounding area (surrounds all the legends of the response, it is also possible in the Quiz slides model, too bad, there are no placeholders for the legends of the individual response it)
    • move the legend of substantive response as needed (always use shortcuts like DOWN SHIFT and CTRL-DOWN, DOWN not to disturb the alignment)
    • to reselect all the legends of the answer, right click menu, Align, distribute vertically (or use the icons in the toolbar alignment of course)

    It is a pity that you cannot apply these lifestyle changes to all MCQ don't slide, apply no button accordion format, without memory default style in the upper part of the legend of the response properties panel. This means that the process must be done manually, but at least you can mix.

    Lilybiri

  • Creating an application with Muse (was: Muse)

    I was under the impression that you can create an application with the Muse program. Is this true? If so, how can I start - trying to find info on AdobeTV, but did not have much luck. Thank you!

    Muse is a product that allows you to easily create desktop Web sites and mobile without any programming. You can create HTML content using muse and use Adobe Phonegap to build an application using the code, however if you are looking to create an application without coding, take a look at Adobe Digital Publishing Suite instead of Muse (you can create an application using InDesign + DPS).

  • master password bios for hp mini 1151 with code 2MC92472WZ please help. THX

    master password bios for hp mini 1151 with code 2MC92472WZ please help. THX

    Hello

    Try to enter: 74eo7vx7d0

    Kind regards

    DP - K

  • Sudden issue with eprint & allowing any application or web services

    Hi all

    I have a case with HP and spent 4 + hours on the phone with support eprint people and people of departmental support. Unfortunately, they are now gone for the weekend, and I'm still stuck here with a defective system - and have to leave this weekend on businesses (need a business printer works!)

    I hope someone here can help you.
    I have a x576dw MFP

    Connected to a Netgear router hardwired

    Worked very well with eprint services (set up and printing of daily) for 1 + months

    23:00 last night, I sent several jobs to the printer and I noticed today that they were not there. I checked the print server web printers and find that the IP settings had not changed (of course) when he worked the day before. The same IP address, DNS, default etc. same gateway.

    I ran through all the scenarios/patches that I could find online, to change to the evolution of tests and test with DHCP, changing to wired & test with static and wireless Wi - Fi but a different outside the range of the DHCP IP address, change the router to which the printer is sitting on (I have 3 routers), change the config to link change the primary DNS and secondary only be both addresses from Google (8.8 and 4.4), etc etc.

    ePrint crossed (frustrating) exactly the same steps with me and decided that it was a printer problem. They handed me off the coast for the guys from companies who wanted to do exactly the same steps as for the moment (of course). I did just to get through... (note that I can print correctly on the LAN of all routers), and at the end of technical support told me to try a restore to default settings and start over.

    Do you have this (gr) - same error. When I go to the same activate eprint or apps that it says "Web Services could not be activated". I get the same error on the web interface for the printer.

    Help! IM at a loss total here and HP wants to blame the eprint team, the eprint team wants to blame business solutiosn HP!

    (Other notes... I have checked the firmware, it is updated. I checked also up-to-date web software)

    Frustrated to tired business chick!

    Hey, happy that we were able to work.

    I will contact you on the subject to find the failed unit on your part. We will send to a R & D facility.

  • Application of Web service on weblogic 10.3.6 (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

    I built a server service web application in 11.1.1.7 Jdeveloper and deploy it on weblogic 10.3.6 to the demands of the external partner is used.

    I tested the app using the tool SoapUI and everything works fine and I get as a response from the server.

    Use case:

    1 - the customer can not get as a response from the server. They always receive 500 internal error from Server

    2 - I have faced this problem before with other clients because the client sent not writing xml format that is accepted by the server. Problem is solved at the time when they start to send the right xml format.

    3 - newspapers, I see the following stack (part of it): (Google, I knew there's something wrong with xml, the client sends to the server: wso2 - how can I manage this in Wso2ESB that does not Respone to the Client - Stack Overflow)

    4. now I need a way to know exactly what is to reach my server as xml. Is it possible to save the queries coming to the server weblogic. xml Without knowing what will happen on the server, I don't know what is going wrong in the xml file.

    < error > < com.sun.xml.ws.transport.http.HttpAdapter > < BEA-000000 > < could not create a SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: Illegal treatment target instruction ("xml"); (not case sensitive) xml is reserved by specs.

    [row, col {source unknown}]: [10,16]

    com.sun.xml.ws.protocol.soap.MessageCreationException: cannot create SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: illegal treatment target instruction ("xml"); XML (not case sensitive) is booked by the specifications.

    [row, col {source unknown}]: [10,16]

    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:295)

    at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:294)

    at com.sun.xml.ws.transport.http.HttpAdapter.access$ 500 (HttpAdapter.java:102)

    to com.sun.xml.ws.transport.http.HttpAdapter$ HttpToolkit.handle (HttpAdapter.java:519)

    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)

    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141)

    at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:172)

    to weblogic.wsee.jaxws.HttpServletAdapter$ AuthorizedInvoke.run (HttpServletAdapter.java:708)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

    at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)

    to weblogic.wsee.jaxws.HttpServletAdapter$ 3.run(HttpServletAdapter.java:311)

    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)





    Update 1: I found that I need to add the following lines of code to enable logging on the server. But I thing execution is not to join them and fail before that. No idea how to highlight the execution of any request. Maybe in jdeveloper and weblogic server?


    System.setProperty ("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");

    System.setProperty ("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");

    System.setProperty ("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");

    System.setProperty ("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");

    System.setProperty ("javax.net.debug", "true");


    Update 2: I just need to set the following properties of java (-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump = true) in the setDomainEnv this file for the side server, see this link: How to apply Log and response with Java JAX - WS Client and web service server? But how to connect their good in files not just their output in the console?

    I am in a position to know what is the cause of the error (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

    Update 2 in the question, I am able to see which is reached from the server console. The customer was sending additional labels and with in the body tag, which is not recognized by the server of web service application and it throw the customer 500 internal server error. The problem is solved by sending exactly the XML except without additional or missing tags.

  • AF:query with web services data control

    Hi all

    I'm very new to using web services as a data source in the ADF. I'm looking to use a component of af: query (with saved searches and advanced mode) with a web service data control.

    The doc - http://docs.oracle.com/cd/E24382_01/web.1112/e16182/appendix_datacontrols.htm#CHDGBBIJ - it seems that there is some programmatic application necessary to achieve this goal. I guess that means that you are required to implement a custom QueryModel and related classes. My understanding is correct?

    Is there a sample (or documentation) available for this application? I searched the web but can't find anything useful.

    Note: For the purpose of learning, I just exposed service interface of the Module of an Application as a web service remote. The web service has my view exposed as an operation criteria.

    Thanks in advance,
    Bruno Guillaume

    Hello

    the query component does not work out of the box with the DataControl WS that it does not support the named criteria (which will be for a long time in the future). To create a request form, you can drag a WS method as a parameter. If the method has arguments of complext, you will find the complex argument that manufacturers in the Panel DataControl, so you can flatten by drag and drop in the form of parameter

    Frank

  • SSO with web services

    I have a set of simple web services that implement the HTTP methods and I enabled NI Auth on each one with the same permissions.  I call each one individually and I get expected connection box, but I want to be able to implement single sign - on.  This will allow to the my users of (for example) to connect to the server once to display a schedule, then send a calendar item, please see Appendix still all while recording only once.  I use LV2010 SP1.  Any help or advice are appreciated.

    If you want to be able to integrate the functionality of connection in your web application? Or you are on the page of connection OR connection? The login page OR put the logon cookie in the browser on a successful login. You could potentially get this cookie and use for subsequent requests.

  • Web site: error Client with Web Services


    Howdy.  I try to use web services ServiceContent and PropertyCollector objects into my vSphere client Web application.  I borrowed code example in the SimpleClient and PropertyCollector examples for my application.

    I put the parameters hardcoded for the server URL, username and password get the ServiceContent object.  However, when I call retrieveServiceContent() (see below), I get error 'Invalid Cookie', although vimPort returns a serviceContent non-zero.

    serviceContent = vimPort.retrieveServiceContent (SVC_INST_REF);

    Later I try to use this object as well as PropertyCollector serviceContent to try to retrieve a reference to host by host name, but the call to _vimPort.retrievePropertiesEx () fails with the error "Connection Refused", perhaps because of the invalid cookie.

    Any ideas?

    -Eric

    more details code below:

    private ServiceContent getServiceContent()

    {

    /*

    • borrowed from the example of SimpleClient

    */

    Server URL and credential information.

    String serverName = "10.128.111.222"; args [0];

    String userName = 'myuser '; args [1];

    String password = "MonMotpasse"; args [2];

    String url = " " https:// "+ serverName +" / sdk/vimService ";  

    VR;

    {

    ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();

    VimService vimService = null;

    VimPortType vimPort = null;

    ServiceContent serviceContent;

    HostnameVerifier hv = new HostnameVerifier() {}

    public boolean verify (String urlHostName, SSLSession session) {}

    Returns true;

    }

    };

    trustAll();

    HttpsURLConnection.setDefaultHostnameVerifier (hv);


    SVC_INST_REF. SetType ("ServiceInstance");
    SVC_INST_REF. SetValue ("ServiceInstance");

    vimService = new VimService();
    vimPort = vimService.getVimPort ();
    Map < String, Object > fixed = (vimPort) .getRequestContext ((BindingProvider));

    CTXT.put (BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
    CTXT.put (BindingProvider.SESSION_MAINTAIN_PROPERTY, true);

    ERROR Invalid Cookie here
    serviceContent = vimPort.retrieveServiceContent (SVC_INST_REF);

    vimPort.login (serviceContent.getSessionManager (), user name, password, null);

    Return serviceContent;
    }
    catch (Exception ex)
    {
    ex.printStackTrace ();
    Returns a null value.
    }
    }

    public static (retrievePropertiesAllObjects) list < ObjectContent >
    List < PropertyFilterSpec > listpfs, ServiceContent service)
    throws RuntimeFaultFaultMsg, {InvalidPropertyFaultMsg}

    RetrieveOptions propObjectRetrieveOpts = new RetrieveOptions();

    List < ObjectContent > listobjcontent = new ArrayList < ObjectContent > ();

    ManagedObjectReference propCollectorRef = service.getPropertyCollector ();

    Rslts RetrieveResult = _vimPort.retrievePropertiesEx (propCollectorRef,
    (listpfs, propObjectRetrieveOpts);
    If (rslts! = null & & rslts.getObjects ()! = null)
    & &! rslts.getObjects () .isEmpty ()) {}
    listobjcontent.addAll (rslts.getObjects ());
    }
    String token = null;
    If (rslts! = null & & rslts.getToken ()! = null) {}
    Token = rslts.getToken ();
    }
    While (token! = null & &! token.isEmpty ()) {}
    ERROR connection refused here
    rslts = _vimPort.continueRetrievePropertiesEx (propCollectorRef,
    token);
    Token = null;
    If (rslts! = null) {}
    Token = rslts.getToken ();
    If (rslts.getObjects ()! = null & &! rslts.getObjects () .isEmpty ()) {}
    listobjcontent.addAll (rslts.getObjects ());
    }
    }
    }

    _logger.info ("ManagedObjectService::retrievePropertiesAllObjects, listobjcontent return");
    Return listobjcontent;
    }

    Here is the solution to the problem that other people can have:

    -You call an action on a custom object and want to access the vSphere API of the java code for this action.

    -If you only pass a custom object reference it not will give you access to the vCenter serverGuid the way, which would be a reference of vSphere object (see samples/vsphere-wssdk-service/src/main/java/com/vmware/samples/vspherewssdk/VmDataProviderImpl.java ) because the serverGuid of the object has nothing to do with vCenter.

    -The solution is to use the objects global UserSession which contains the list of the ServerInfos with the IDS of connected vCenter.

    -However, you still need to provide a way to choose the vCenter just in case there is more than one (in the user interface, or may be by other means)

  • Where to start with Web Services

    We run an ESXi 5 environment with a server for vSphere and are eager to develop a system to be able to create virtual machines.

    I came across the site of the developers of VMware and was very happy to find the vSphere Web Services SDK and wanted to know where to start?

    Y at - it software or settings that must be enabled on the vSphere server or ESXi hosts to allow the use of the SDK?  I downloaded the SDK and trying to connect and have had no success yet, and here the possibility that something is not missing on the server.

    Will there be sites level introduction, articles or tutorials on how to start using the SDK?

    I'd appreciate any help that anyone can provide.

    Thank you

    Matt

    Hi Matt,

    Everything you need to start is available here: http://www.vmware.com/support/developer/vc-sdk/

    It has links to:

    1. the developer's Guide

    2. the Program Guide

    3. the online API reference

    4. the download of the software development kit (if you have not already had it)

    The configuration guide for developers gives you all the steps to configure your system, and how to compile the examples. I suggest you review this first and get to the point where you can run the basic example of program that connects to the ESXi host and gets a few values.

    The configuration guide for developers is divided into separate sections for Java and c#. I'm using c# and the guide was in all on-site.

    The following document to read is the vSphere Web Services SDK Programming Guide - it will help you understand all of the concepts you need for programming with the SDK. The information is presented in a generic way, but samples lean towards Java. But not to worry because the SDK c# samples are many and it is easy to cross things between the Programming Guide and a reference sampling program. This guide is very large ~ 250 pages, but you don't need to read all this, chapters 2 to 5 are what I'm focused on - they are the absolute must know things for relying on web services SDK. What follows I'd say depends on what you need to do with the SDK. A very useful reference when reading the chapters 2 to 5 is the managed object (MOB) on your ESXi host browser. It is accessible at https://your-host-url/mob. You can search the managed objects and explore their hierarchy here.

    Once you understand, I dare say that you are able to start your own program with the help of the API reference of course. In fact you may have already tried poking around with a few lines of code by reading the guide just because it is useful to understand the concepts by testing them with code.

    Also nothing should be done on the server to start to use web services SDK.

  • Which server to connect to with Web Services SDK?

    Is there a way to know which server to connect to when using Web Services SDK?  It must be the ESX Server virtual machine is on, I guess.  But a customer pretends that we are connect to its server vCenter Server, which I do not think that was possible. I tried to call one of the SDK sample and connect to my vCenter server, but it didn't connect. I had to connect to my server ESX or vSphere.

    We use them vSphere 4.0

    The only api vSphere is available on (i) ESX and vCenter, some things will be available on one or the other, for example, cloning is a feature of vCenter and there will be APIs that is available only when connecting to vCenter. Depending on what you're trying to run, you can be able to obtain the information by using two systems, such as the search for a virtual machine. If you manage only a single host, it is pretty trivial, but if you manage more than 20 + guests and you have vCenter, then you probably want to use vCenter.

    I don't think you understand clearly the operation of the vSphere API and what is worrying, it is that you meet your customers to run a script unknown in which they or you understand. I think that I have answered some of your questions in the past, to reiterate that if you are new to the VMware/SDK API, I would recommend that you completely cross the following document - Getting Started with vSphere SDK - Update for SDK 4.1 release

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware VCP3, 4

    VMware VCAP4-DCA

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Find / create / update using the Web service data command.

    Hello

    I'm working on PS2 (JDEV 11.1.1.3). One of the requirements is to build Web services from ADF pages. Initially the user connection is looking for items. The results would then be displayed as a read-only table. The user will select line clicks on the button "edit / update" then I need see the second page with the details of record selected as a form. Then he can add / edit the page. The same page is also used to 'create '. I am facing issue while the user selects the record in the table Details the research and passing the Id on the second page of the update of the. Can someone help / guide me.

    I went through the blog of Shay. http://blogs.Oracle.com/Shay/2010/05/updateinsert_with_adf_web_serv.html
    But it's different compared to my needs.

    Enjoy your entries.

    Thank you
    Mahesh

    I don't see exactly how have more fields influence the approach.
    If you are looking for a shortcut, you can try to drag the operation of fusion, as a form of parameter ADF - this will create all the fields for you. And then you will need to go in and change their value to point to the pageFlowScope object.

  • application of Web service instance

    I am building a web services LV2009 (main.exe + web services) application.  The web service VI leaves globals with the main.exe.  I think that web services are run under a separate application instance, so use globals will not work directly.  My idea was to wrap the consolidated appeals on the side of web service inside calls to the VI server to main.exe.

    Here's what I thought:

    So, to make this work correctly, I opened an application reference (default port 3363) and reference of VI (VI is in memory in the main.exe).  I have read the value of the global fight against, close the references and convert the value of the control in the correct data type.

    Everything I read, I should be able to do all of this within the development environment LabVIEW with the service deployed on the local computer. My LV has the web server and the server of VI (port 3363) enabled.

    I have built and deployed the VI service after you turn off the first VI server within the service project (I'm not really sure that it is really important).

    I run my main.exe (.vi) and you try to call the service, but I get error 1004 (reference open VI - VI not in memory).

    I guess my problem seems to be around the "Open Application"... How can I open an application of a web services VI reference?

    TIA,

    James

    Even if it is on the local computer, you must supply the computer name or IP address ('localhost' should work).  Otherwise, you will just a connection to the instance of the local application (see Help), which, of course, does not help you communicate through instances.

  • Interoperability with web services

    Hello

    I created a Web service in .NET, which must be called from another Web (Server BEA) service as a Notify operation. I get a SOAP exception and I pointed out that the server (BEA) is able to connect to my web service (.NET), but the "Notify" method within my Web service is not triggered. [basically, I need to create a WS that will be called by the WS server on the success of a task]. I tried to compare the WSDL from the server and the one that is generated by .NET on my side, and they do not match.

    for example the server was and , but on my side .net tool has the same name of the = "Notify" operation, but the

    So basically, there is a difference... How to solve this?

    Thank you

    This is not the right forum for this type of question.
    Please post in the MSDN Web site using the issues of .NET.

    http://social.msdn.Microsoft.com/forums/en-us/categories/

    Thank you

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Registration with Web services via printer - officejet 6700 premium

    I jut bought a premium officejet 6700.  I have set up on my wireless network and it works very well and diagnostic results report comes as "no problem found", but when I go to sign upward for Web services (eprint and apps) it says "can not log on to the server and check the internet connection".

    Can someone help me with this problem?

    Thank you for your contribution to this number - it has now been resolved and I eprint services work after following your instructions.

    I know it took some time, but due to the pressure of work it took time to get round to reading and following your instructions.

    Thank you very much

    Strange Su

Maybe you are looking for

  • HP 250 g3: driver for webcam

    I need driver for webcam hp 250 g3 victory 8.1

  • Black ink cartridge problem

    I have a HP Photosmart 5520, which ceased print in black. After replacing the cartridge with a genuine HP cartridge it still refuses to print in black. I did own greenhouse printheadts upteen don't. When I print on my Print diagnostics page, it print

  • How can I get the Date of birth, I used on my Email

    I need to know how to find the Date of birth, which I used on my WLID

  • HP 2115 ps - print properly on the internet

    Previously, I used AOL as my internet provider and had no problem with impression of the stuff on the net. Since I changed to SKY Broadband (which uses Internet Explorer 7), my HP psc 2115 print not directly from the screen of the internet. It prints

  • Passport for blackBerry, I'm sure you can do better

    I updated recently and noticed quite by chance, that I can now move on to the next track using the button on the headset. I noticed when I tried to put music on pause, but instead he switched to the next track. At the moment it seems quite confused w