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.

Tags: NI Software

Similar Questions

  • 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

  • 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.

  • Sudden issue with eprint &amp; 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 and web Services

    I got 3 subjects with the same question, and looks that person really don't know the answer...


    wscListener.result = {function (evt,:Object)}

    trace (evt. Target.Results [0] Online);
    };


    It's component CFQuery results but I get [Object, object] in outpanel... anyone know how to retrieve query in text?


    Well, it's like nobody can help me? nevremind, I found the treatment... results [0]. TITLE

  • How to get the IP address of the calling client to the web service built in Jdeveloper 11.1.1.7 application?

    I built an application of web service in Jdeveloper 11.1.1.7 to be used by other clients. Just the General steps as follows (Server web service Application is generated--> deployed on the server-> used by clients with the location of the WSDL file).

    Now, I met a requirement where I need to get the port number and IP address for the client.

    Questions :

    How to get the IP address of the calling client to the web service application generated in Jdeveloper?

    Commune technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology use to built web service application?

    The common technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology allows built web service application?

    It depends on the option selected during the creation of web services (if I remember correctly, there are several options, style J2EE 1.4 RPC style JavaEE JAX - WS 1.5,...)

    For example, to get the ip address of the compatible with jax - ws web service, you need to inject the context in your service class with:

    @Resource
    WebServiceContext wsContext;
    

    and then inside your method:

    MessageContext mc = wsContext.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST);
    String ip = req.getRemoteAddr();
    

    Dario

  • Catch the event Web Service Session Timeout

    Hi all

    I have a LV Web Service communicate to a web client (Chrome, IE, FF, etc.).  The user connects to the server and create a new session for him to help create Session VI.  One of the entrances to this function is a timeout value (default 60000ms).  The sessions behavior is such that if the user does not activate an application for web service (GET/POST/PUT/etc) within the time limit, then the session is automatically destroyed by the web service.  That's what I want, it's fantastic.

    My question is How can I detect when the session timeout happens? Another way to say, How can I detect when the user session is automatically destroyed?

    What I tried:

    • Of course, I can provide a "logout" link to the user calling ultimately "Destroy Session" VI, but I can't count on the user actually click this link (e.g. you really explicitly sign out of gmail or simply close your web browser?)
    • I thought that the only way to proceed would be to save the cookie of session ID returned by create Session VI and then query this ID to see if the session still exists (check if Session exists VI).  If the session does not exist, well, I know it has expired or the user manually destroyed it.  However, even if I save the cookie ID, I don't see where I can actually use it any where (especially not check if Session is VI). It just seems no value given to the range of sessions.

    Is this possible?

    Thank you

    Rory

    Sorry, Thomas, but that isn't going to work.  Think about it - you do not request a web service during the time-out period. You get ONLY a web service request when the client actually asked something.  The customer does not have during a timeout; It's just times out... so, there is no node on the block diagram to check because there is no block diagram... get it?

    No worries, however, I found the solution [read: workaround], even if the LV can do it (from 2013sp1).

    The best way to detect if a user session times out / out times would be for LV to this exhibit as an event in the web service. The following approach would be for LV accepts a cookie as an entry ID and then provides information on this session (i.e. the session exists).  I have a smell of two feature requests...

    But because BT cannot do these things (or not exposed to the developer), you will need to get creative on the client side.  Since I'm on Javascript/jQuery/AJAX on my front end, then it is possible for me to detect when the customer leaves the page or close the browser.  It comes to $(window) .unload () in jQuery.  Then, I can take this event and an asynchronous AJAX command of fire to one of my web service VI that will eventually call the "destroy Session" VI.

    For more information see the site here:

    http://lavag.org/topic/18490-catch-session-timeout-events-in-LV-Web-service/

    Hope this helps someone.

  • Data is encrypted for web service calls?

    I wrote a small JME (J2ME) application for a BlackBerry handheld device. This application calls web services to accomplish its mission. I am using the advantage of the specifications of Web Services, J2ME (JSR 172) supported by Blackberry JDE 4.3 +. I use Java Wireless Toolkit 2.2 from Sun to generate stubs and other support classes. I am able to invoke web services and also get the correct answers to it.

    After recalling some documents and websites, I understand that any communication that happens between your handheld and BES is encrypted (3DES or AES).

    Is the question that I have, if the data between the computer pocket and BES/MDS previously described WebService invocation are also encrypted? I have a question to cause that communication here is initiated by the device.

    Can someone please let me know the answers? Thanks in advance.

    If you are using MDS: Yes. Between the MDS and the webservice: No.
    If you use another link, as direct tcp, wifi etc.: No.

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • The Web Cache instance is out of service every hour

    Hello
    I have 11.1.0.1 on Solaris 10 SPARC EM grid control. All the patches in the applied SGD.
    I have problem with monitoring application 10.1.0.1 on Solaris 10 x 86 Server. Agent 11.1.0.1.
    emagent.TRC:
    2011-01-11 10:27:57, 745 ERROR Thread-440 engine: [Cache oracle_webcache, reports.sun - rep_Web, ESI_HIST]: nmeegd_GetMetricData failed: java.lang.NullPointerException
    2011-01-11 10:27:57, collector of Thread - 440 WARN 745: < nmecmc.c > output error. Error: java.lang.NullPointerException

    I get alerts every hour with "the Web Cache instance is down".
    Help, please.

    If the agent gets really restarted several times a day (every hour for example) which is certainly not expected behavior...

    I found this - perhaps it helps:
    (you should check your mentioned errors log files)

    The 11g EM Agent restarts at frequent intervals with the following entries in the /sysman/log/emagent.nohup file of

    emagent started successfully
    URLTiming: Using SunX509
    Exception in thread "oracle.dms.collector.GatherThread@15000".
    java.util.ConcurrentModificationException
    to java.util.HashMap$ HashIterator.nextEntry (HashMap.java:793)
    to java.util.HashMap$ EntryIterator.next (HashMap.java:834)
    to java.util.HashMap$ EntryIterator.next (HashMap.java:832)
    at oracle.dms.collector.Gatherer.cleanup(Gatherer.java:235)
    at oracle.dms.collector.GatherThread.run(GatherThread.java:85)
    -Recycling process. VMSize is 6385.46875 MB increased 6327.09375 MB
    past 3 -.
    -Thu Jul 15 02:14:08 2010::Received asks to restart EMAgent: 12200
    -----
    -Thu Jul 15 02:14:08 2010::Stopping EMAgent: 12200 -.
    (pid = 12200): emagent now go out normally

    The new start above occurs when the virtual memory consumed by the Agent have crossed the line and that's why he is automatically restarted by the daemon process.

    -The /sysman/log/emagent_fetchlet.trc also shows a lot of errors related to the JNIFetchlet:

    [nmefmgr_getJNIFetchlet] Warn emd.fetchlets getMetric.387 - oracle.sysman.emSDK.emd.fetchlet.FetchletException:
    oracle.sysman.emSDK.emd.fetchlet.FetchletException: java.io.IOException:
    Cannot connect to any host
    oracle.sysman.emSDK.emd.fetchlet.FetchletException:
    oracle.sysman.emSDK.emd.fetchlet.FetchletException: java.io.IOException:
    Cannot connect to any host
    to
    ..............
    [nmefmgr_getJNIFetchlet] WARN JMX.generic logp.251 - IOException: can not connect to the target with
    serviceURL=service:jmx:t3s://agentmachine.domain:7101/jndi/weblogic.management.mbeanservers.runtime for weblogic_j2eeserver:server metric:
    Unable to connect to any host Cause: javax.naming.NamingException: unable to connect to any host [root exception is org.omg.CORBA.COMM_FAILURE: vmcid:]
    [Minor SUN code: 203 out: No.]

    -Historical data for the "use of memory resident (%) 'or' memory use virtual growth (%) ' parameters for this Agent show large memory
    use over the period, when the Agent has increased.
    These details are accessible from the configuration of Console grid-> Agents-> click on the name of the Agent-> click on 'All settings'-> Expand ' Agent process
    Statistics-> click on the "use of memory resident (%) 'or' memory use virtual growth (%) '.

    Cause
    This issue has been studied in the Bug 9829732: AREA of SGD AGENT 11.1.0.1 RUNNING ON CONSUMED the UPPER MEMORY

    Using pmap to check the memory usage:

    $ ps - ef | grep agent11g
    PMAP $

    Returns a result as below:

    ....
    00002aaab32e0000 rwx 21248-[anon]
    00002aaab47a0000 rwx 64768-[anon]
    00002aaab86e0000 125632 rwx-[anon]
    00002aaac0190000 1884160 rwx-[anon]
    00002aab33190000 rwx 62784-[anon]
    00002aab36ee0000 942080 rwx-[anon]
    .....

    It was found that the majority of virtual memory has been consumed by these [anon] blocks.

    It was found that the memory of Java used by the Agent when using JNI calls must be tuned. This may be necessary when the large number of "java" such as Weblogic servers targets is monitored by the Agent.

  • What that means, "Web service is disabled. An administrator can activate using the application server? »

    I am trying to connect to a Web site that I am using for 5 years and more. Now Firefox reports that the certificate is incorrect, and the message "Web service is disabled. An administrator can activate with the server application. ", is given.

    I don't know what to do with this information. Service Web is on other Web sites. What is the "server application? How to take control and connect? I am the administrator.

    Are you able to reproduce this problem with another browser?

  • Deployment of Web Services has failed. Web applications server OR still load.

    I installed LabVIEW 2013 and I am trying to publish the web service. Every time I try, I see this message: "unable to Web Services deployment. The Server Web applications OR load again. »

    I don't know how to stop or complete this loading. I have reinstalled LabVIEW 2013, removed LV 2012 and other software. In addition, when I restart the 32-bit server, I have old web services installed. Even if I do not publish them, they appear after the transition to 64-bit-> 32-bit server.

    I will be grateful for your help.

    Peter

    Hi all

    It was a problem introduced with the new deployment of LabVIEW web services in 2013, specifically on laptops (classified as CAR 422680). It is fixed in the patch of f1 2013 LabVIEW. This patch is available for download here and you can get more information about the patches in the patch here. The patch will travel via Service Update OR later this month.

    Kind regards

    Jeff Peacock

    Product Support Engineer | LabVIEW R & D | National Instruments

  • Application server work has no service instance in search server

    Dear all

    I get the error in the event log in search server:

    Application server work has no service instance
    USER.USER 1cfffab1-ba92-4822-a559-d64b6b5ffabc) EVENT ID:6398

    Please solve the problem

    Hello

    ·         When exactly do you get this error message?

    ·         Your computer is on the field?

    ·         What exactly are you trying to do?

    ·         What operating system is installed on your computer?

    Response with above information to better help you.

    If you have problems with SharePoint then I suggest you to send your request to the support of professional level. Please visit the link below to find a community that will support what ask you:

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

  • Error downloading pdf application ADF using the Web Service &amp; BI Publisher

    Hello

    I work with BI Publisher 11 g and JDeveloper 11.1.1.7. I get the error when clicking on the below download link.

    I tried the link below and to generate the report in my app, but after clicking view pdf button throw error.

    Antonis Antoniou blog: integration of Web Services in your ADF Application Part 2


    Basically, I want to download the PDF using the Web Service & BI Publisher pursuant to the ADF.

    Someone has encountered this problem before? You have all the solutions / suggestion?


    Thank you

    Swathi

    Have you tried to get the catalog via the service?

    As I said before, there you have catalog you to see you making the user you are using to connect has access.

    Have you tried to give the full url for the report? check out the blog I posted before where you see how to specify the full url.

    Timo

  • jDeveloper WebService package installed, but the Web Service features are not available in the application wizard

    Hello

    I installed jDeveloper (Studio Edition Version 12.1.3.0.0) and also I installed some packages, for example the Web Service package. But when I create a new application project / I can't select for example of Web Service Client / Proxy and others. See photo:

    jdeveloper_webservices.png

    Do you know why? How can I make available?


    THX!

    Milan

    OK, I found it

    I created an application (Custom Java) with the empty project, and then I was able to add the web service client project (right click on the 'project' and select 'of the Gallery"). The same window appears as in my first post, but all features are available

    Thank you!

    Milan

Maybe you are looking for