State of Web-Services

Hi,
I am new to Aqualogic Service Bus 2.0
Web-Services as such are stateless entities.I have a business requirement wherein i need to save the state information of the Web-Service.
Can anyone help me out in knowing whether Aqualogic provides this feature for saving the state information of Web-Services ?
Thanks in advance.

Hello Andrew,
The API for ANM is purely for configuration, it does not return anything other than configuration.  The state of "inservice" or "out of service" relates to the command under the rserver:
rserver host Server05
ip address 172.16.35.14
inservice <======= **Here**
The probe states don't relate to the configuration, so the API doesn't have a plugin to that information.
However - You could use SNMP seperately to gathter that probe state directly from the ACE and intigrate that into the page you are executing the API for.
Regards,
Chris Higgins

Similar Messages

  • Manage session state in web service (web tier)

    Hallo, is anybody know how to manage session state in web service application?
    I 'm building an application using Sun Java System Application Server 8.1, and using web as web service end point.

    By default webservice is a stateless, but there is a option where you can specify the Request scope session/Reqeust/application
    You can use the above and have to make a change in the client side to particiapte in the session.
    Or
    In the server side you can have webservicesession tracker class...very first time when user is authenticated, you generated a unique token and send them with request....and from there on client should send the same token for further request.
    Token is checked with your webservicesession tracker class which maintains all active seesions. Session tracker class can also inactivate the token session if there was no request from the user for a certain period of time....
    Its similar to HttpSession class ( i call it as WebServiceSession.)
    If you need more help on the webservicesession class...pls let me know.

  • Maintain state of web service client

    I have implemented a web service from a java class in jdeveloper 10.1.3.2.
    It has some operations. I want to give the client that invokes the web service, a session id after login operation. After that, i want to use this session id in succesive calls for other operation.Can anyone help me regarding this topic.Is there some document related of what above.
    thanks in advance Soni.

    Thank's a lot for ouy question.
    Mean time a implemented a stateful web service.
    Its scope is session an time out is 1800 sec.
    It seems that it solves my problem but i am not quiet sure.
    I implemented e client to test the web service and set setmaintainsession to true.
    When the client calls the web service after login, it has to use the same port assigned during login not istatiate another port.
    1. is it o good implementation?
    2. 1800 sec, means that the web service port is available for 1800 seconds?
    2. what happens when 1800 sec expire?
    3. can i invoke a stateful web service form other platforms not only java(example .net )

  • Maintaing state with ejb web services

    Hello,
    I understand there are no straight way to maintain state with ejb web services. Basically I have a stateful session bean and I would like to maintain state across requests. What is the best/cleanest architecture I can use in order to maintain state with web services?
    Any reply appreciated,
    Julien.

    Here's how BEA suggests you do it:
    http://e-docs.bea.com/wls/docs81/webserv/design.html#1058330

  • Accessing config information in XML file in a Weblogic web service (JWS)

    Problem:
    I have implemented a web service for sending emails and pages via Java Mail and SNPP respectively using WebLogic Workshop on the BEA WebLogic 8.1 platform. In the service, I use certain pieces of information that are currently stored in an XML file on disk. Also, in its current state, the web service is implemented with public methods directly in the .jws Java file and not as a session bean. The file read from disk is performed every time the web service operation to send a message is invoked. As we all know, the I/O files access is very expensive and a performance bottleneck, especially when it is incurred on every invocation of the web service ‘sendMessage’ [operation.
    Without radically re-writing the application, I am looking for a way to improve the performance of the web service and can only come up with the following 2 ways:
    1) Move the code out of the sendMessage operation: Here, the main question I have is 'to where should I move it to'? I have seen in the WebLogic Workshop documentation that WebLogic Server maintains only a single instance of a Java class that implements a Web Service operation, and each invoke of the Web Service uses this same instance. In that case, I should be able to put the code in the constructor so that the files is read only at the time the class is instantiated, but a constructor in the .jws file that contains the web service operations itself does not seem to be invoked by the container (I tried to put a breakpoint in the constructor, but it seems that the constructor code never gets called)
    2) Move the configuration variables into some type of standard configuration file of WebLogic, something like web.xml or wlw-config.xml or jws-config.properties files. But I found that these XML files have an associated schema to conform to and do not provide any custom elements or attributes that I could add for my application(is that true?). Also, if I can somehow put the configuration information into any of these standard files, how do I access it from within the application 'without' doing a file read from disk? Are these configuration file items available in memory for access and use by the web service and if they are, what API can I use to access and use them?
    Any and all ideas are welcome!
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have been looking into a similar problem. Since web services are by design stateless, they aren't good for 'remembering' information between calls. Aside from a file read, the only other solution I have found is to use a database. You can make use of an entity bean or simply make some kind of JDBC call. I don't know if you need to stick with the config file, but if so maybe you could read the config data into a database once and then you might have faster access than reading from a file. I'm not sure about which would have better performace, but its all I have come up with so far. What parser are you using to read your XML file? Have you tried others to see if they have better performance?

  • Stateful web service implementation in Flex 2

    Hello Gurus,
    We are trying to invoke a web service located on a remote
    server using MXML to create a purchase order. One of the
    requirements is that we pass a cookie from our end to this web
    service for authentication and session management purposes. Can
    anyone throw some pointers on passing cookie information to
    webservices from MXML or ActionScript?
    A little bit of research resulted in the following link:
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Parts&file=rpc_26.html
    An extract from the above document states the following:
    "Stateful web services
    Flex uses Java server sessions to maintain the state of web
    service endpoints that use cookies to store session information.
    But unfortunately there are no examples on how to pass the
    cookie information itself. Any pointers are appreciated . Thanks
    much!

    This issue caused me much confusion and delay, so I hope that what I am about to say is correct.  When Flex calls a web service that requires a stateful connection, the web service "cookie" is stored in the browser.  Flash automatically attempts to access this cookie value, and returns it to the web service when additional web service operations are called.  The cookie value will be placed in the "Request Headers".
    A couple issues that gave me fits:
    1.  Safari browser on Mac had default "/preferences/Privacy/Block cookies" set to "From third parties and advertisers".  This was preventing the cookie from being sent.  I had to change this setting to "never".
    2.  I work inside the Flash API.  Testing my movie never passed the cookie value back, and I have not figured out how to do this when compiling for Flash Player.
         - NOTE: I am able to test compiling as an Adobe Air App just fine.  I did this to get my web service calls/parsing of returned info correct first.  Cookie issue and Cross Domain issues are not issues in Adobe Air, so I find this is a good place to get the web service working.  After working compiling as Adobe Air, switch to compile for Flash Player to fine tuning other issues.
    3. Cross Domain issues.  Lots of posts on this.  Pay close attention.
    Thanks!

  • Web Service Problem (CityStateLookup)

    I recently attempted to re-create the City & State Lookup web service located within the Sample Application(v1.6) and have thus far failed miserably.
    I went to the endpoint URL of 'http://iaswe2.oracleicenter.com:80/CityStateLookup-cr/CityStateLookup' and located the WSDL, copied that URL and went to create my own web service for my application.
    I went to 'Shared Components', then 'Web Service References', and hit the 'Create' button. After selecting 'No', so I could manually enter the WSDL location, I pasted the following URL into the prompt 'http://iaswe2.oracleicenter.com/CityStateLookup-cr/CityStateLookup?WSDL' and created the reference.
    After creating a 'Form on Web Service', I attempted to enter in a zip-code and press submit but failed to receive any data in the CITY, STATE, or LOOKUPRESPONSE fields. I went back to the web service reference and compared my information to the information provided by the reference created for the sample app, and noticed a few differences.
    Here are the credentials for my reference:
    Name: CityStateLookup
    URL: http://iaswe2.oracleicenter.com:80/CityStateLookup-cr/CityStateLookup
    Target Namespace: http://usps/CityStateLookup.wsdl
    Operations
    Operation Name: getCityState
    SOAP Action: urn:usps-CityStateLookup/getCityState
    Input Style: encoded
    Input Namespace: urn:usps-CityStateLookup
    Output Style: encoded
    Output Namespace: urn:usps-CityStateLookup
    Input Parameters
    param0: xsd:string (a.k.a. zipcode)
    Output Parameters
    output: xsd1:usps_CityStateBean (xpath: /output)
    city: xsd:string (xpath: /output/city)
    lookupResponse: xsd:string (xpath: /output/lookupResponse)
    state: xsd:string (xpath: /output/state)
    I also ran a test on my reference and successfully grabbed a response. The request and the response were as follows for zipcode '50266':
    Request -
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body><namesp1:getCityState xmlns:namesp1="urn:usps-CityStateLookup"><param0 xsi:type="xsd:string">50266</param0></namesp1:getCityState></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Response-
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <ns1:getCityStateResponse xmlns:ns1="urn:usps-CityStateLookup" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xmlns:ns2="http://usps/CityStateLookup.xsd" xsi:type="ns2:usps_CityStateBean">
    <city xsi:type="xsd:string">WEST DES MOINES</city>
    <lookupResponse xsi:type="xsd:string">ZIP CODE FOUND</lookupResponse>
    <state xsi:type="xsd:string">IA</state>
    </return>
    </ns1:getCityStateResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Any ideas on why my reference doesn't work correctly but the sample application's does?
    Mark

    I am having the same issue. The one thing I did notice when I compared the output from the sample and my app is the following;
    RESPONSE;
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <ns1:getCityStateResponse xmlns:ns1="urn:usps-CityStateLookup" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xmlns:ns2="http://usps/CityStateLookup.xsd" xsi:type="ns2:usps_CityStateBean">
    <city xsi:type="xsd:string">SANDUSKY</city>
    <lookupResponse xsi:type="xsd:string">ZIP CODE FOUND</lookupResponse>
    <state xsi:type="xsd:string">OH</state>
    </return>
    </ns1:getCityStateResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The major difference seems to be that the string 'urn:usps-' has been added to
    xmlns:ns1="CityStateLookup"
    making it
    xmlns:ns1="urn:usps-CityStateLookup"
    I built mine thru the wizards, trying to replace the compute the values prior to automatic row-processing, as well as calling the web service after retrieving ZIP from the database and computing city and state. In every case, I get a successfull call but a blank response value and no city and state.
    Any help would be appreciated.

  • Web services - ADF essentials

    HI All
    i am using ADFessentials for a project, and as the doc states, the web service data control is not available.(i am using 11g release 2)
    Which would be a viable way to implement web services for essentials, and also use the existing structure of application modules, view and entity objects etc.
    Thanks in advance

    Hi,
    The Web Services Data Control is not used with ADF BC AM modules. This is an misunderstanding on your side. If you considered WebService Data Control to access the WS, then the replacement is to create a WS proxy client and then create a POJO DC
    Watch this for a full coverage of options: ADF Insider: How-to Integrate SOAP and REST Services in Oracle ADF
    Frank

  • Cisco UXL Web service is in a STOPPED state!!

    This is on UCCX 8.5
    I have a issue where the Cisco UXL Web service is in a STOPPED state!!
    Running this command:
    admin:utils service list
    I see the following:
    Cisco UXL Web Service[STOPPED]  Component is not running
    I then am trying to run this command:
    admin:utils service start Cisco UXL Web Service
    But get the following :
    Executed command unsuccessfully
    Invalid service name for start/stop, valid names are:
    How do I enable the Web service?!?!?

    The UXL service is not used by CCX.
    It used by UCM to Conduct authentication checks by verifying the  end user name and password when an end user logs in to Cisco IP Phone  Address Book Synchronizer.
    It is just something that was not removed when Cisco ported CCX to the Linux platform, maybe they have plans to use it in a future release.
    Graham

  • How to access application state from stateless web service?

    I have a beginner J2EE question. After reading through J2EE tutorial, I still don't know how to create an application that would run on J2EE server, and which would have a web service interface to other world, and which would have several threads running, which would connect to other enterprise applications via TCP? Because if I understand it correctly, web service requires a stateless session bean, which means that it can't access any stateleful session bean (except always create one and remove it instantly). So there seems to be no way to store application state and have running threads.
    I'm asking this because .NET seems to have a very simple Application dictionary, which can save all application objects, including threads, and it is very easy to access this Application state from a stateless web service. Isn't there any similar functionality in J2EE? And if not, how it should be done in Java world then?
    I guess that the Connector architecture could be the solution, but it is not documented in the tutorial.

    There's nothing in the J2EE spec that says that you have to use Web Services. Web Services by definition are stateless.
    If your requirements are that you have to use a session bean along with a Web Service, then the architecture needs to be rethought, because it doesn't seem to me that Web Services are what you want.
    That said, you can use a hybrid. You can expose some of the functionality of your application as Web Services while the remaining is implemented in a classic J2EE type framework that is stateful.
    I would also think that you could store your application state via entity beans. You could save and load them when the web service is accessed. An entity bean doesn't require a database... just some form of persistence (could be an XML file for instance).
    You need to decide which components of J2EE make sense when and where.

  • Web Services for a State Machine Based VI

    Hello,
    I am new to the Web Services approach but so far I have managed to build a simple VI which is used with Web Services to display a Graph and make some simple calculations.
    However, I have a more complex application which uses a State Machine architecture to command some circuitry using the NI USB 6211 device. This program includes different states and all the action takes place inside a while loop. This loop uses shift registers to pass the states arround (the JKI State Machine).
    My question is: Could such a program be used with the Web Services without modifying this structure?
    In the programs that I have tried, if I place the execution inside a While structure then I get no result with the Web Services. 
    An example of a simple program which includes a while loop and the Web Services approach would be helpful, if possible.
    Thank you in advance.

    Hello again,
    I was trying to do what Nathand indicated.
    1. "Put a functional global in it that stores whatever value you want to be queried over the web,"
    So I opened a new Project and added the Index.vi just to generate the numbers continuously. This VI writes to a global variable entitled "GlobalOutput.vi".
    This works as I have attached the jpg image.
    2. "and make that VI accessible through VI server."
    This I am not so sure I did correctly. I opened the Tools->Options->VI Server, and here at the section Exported VIs, I added the GlobalOutput.vi. I have attached the image.
    3. "Then, in your web services VI, open a VI server connection to that functional global and run it, by reference, to obtain the value stored there."
    Now I have created another VI, called ServerConnection.vi which runs the GlobalOutput.vi. I have attached the image with the error I get. Something is wrong in what I am doing. In the end I thought that I would create a Web Service for this last vi and basically be able to read the global variable.
    As I understand it, you have a VI which runs locally, in a while loop and updates some global variables. Then another vi reads the values of those global variables.
    It is this last vi that you should create a web service and interogate to find out the values of those variables. What am I missing?
    Thank you in advance.
    Attachments:
    GlobalVariable.JPG ‏21 KB
    ViServer.JPG ‏36 KB
    error message.JPG ‏38 KB

  • Interactive Statement unable to access Web Service

    I have a working Flash Builder project from which I generate a nav file which I use to generate an Interactive Statement using a process in Workbench.
    The Interactive Statement works fine with all the Flash content and data merged from xml.
    When I incorporate using a Web Service in the Flash Builder project code to populate a data grid, and regenerate the nav file to generate the interactive statement, the interactive statement gives the following security error when opened:
    Security error accessing url
    Destination: DefaultHTTP
    It seemed that this issue is related to cross domain policy or something like that, BUT I do not get this error when:
    1. I run the Flash Builder project directly from Flash Builder that fires up IE and my flash content works perfectly fine in the HTML wrapper, including the web service call that works fine. This works fine both from the bin-debug and the bin-release folders of my Flash Builder project.
    2. I created an AIR application from scratch, and consumed the same webservice as used in the earlier Flash Builder project being used to generate nav file for Interactive Statement. The AIR application also works perfectly fine in invoking the web service and does not give any errors.
    Question: Why is my Interactive Statement unable to access the web service and gives the error as mentioned above when the same web service is being accessed and consumed successfully by the same flash content in an html wrapper and in an AIR application. How to make my flash content embedded in the PDF container to access and consume the web service?

    Hi Muhammad,
    Acrobat has different crossdomain restrictions.  Try a crossdomain file that looks like to test the connection:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" to-ports="*" />
    <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>
    Following there are a couple of good articles dealing with web services calls:
    http://forums.adobe.com/message/3784114#3784114
    http://tv.adobe.com/watch/flex-in-a-week-day-2/retrieving-and-handling-data-using-webservi ce/
    http://blogs.4point.com/brad.white/2008/12/4-ways-to-invoke-a-webservice-in-flex-with-mxml -and-actionscript.html
    http://blog.flexexamples.com/2008/04/14/calling-a-simple-web-service-from-flex-using-the-w ebservice-class/
    Regards,
    Oana

  • ANM web services - Get operational state of an SfRserver

    Is there any way to obtain the operational state of a serverfarm realserver via the ANM (4.1) web services API?  The SfRserver data type includes the admin state (i.e. IS, ISS, or OOS) but I dont see a field for the operational state.  The ANM web GUI displays both an admin state and an operational state for a serverfarm realserver -- with the operational state indicating the latest probe status for the real server (e.g. "Up" or "Probe Failed") and I would like to obtain the same information but using the ANM web services interface.

    Hello Andrew,
    The API for ANM is purely for configuration, it does not return anything other than configuration.  The state of "inservice" or "out of service" relates to the command under the rserver:
    rserver host Server05
    ip address 172.16.35.14
    inservice <======= **Here**
    The probe states don't relate to the configuration, so the API doesn't have a plugin to that information.
    However - You could use SNMP seperately to gathter that probe state directly from the ACE and intigrate that into the page you are executing the API for.
    Regards,
    Chris Higgins

  • Data Integrator Web Service Job State

    I would like to know if there's any way, through DI's web services to know if a job is running on the job server or not.  I am building a .NET application that will allow a user to manually launch a job, but I need to prevent the users from launching the job if it's already running.
    I am using Data Integrator 7.2
    Thanks

    you can check the following post with similar discussions
    Re: Extracting JOB_ID for WebClient via webservice
    Extracting JOB_ID within the DS Job

  • Web Services, State, and SFSB

    Hi all,
    I have a stateless session bean that I am exposing as a web service via the @WebService @Stateless annotations. The client is a C# client that connects to the web service and that all works hunky-dory.
    What I would really like, though, is to use the web service as a facade for some stateful session beans so that i can have a "conversation" with my C# client. That way I can store login information and some other useful things. Is this possible? Can I have a stateful web service?
    Thanks,
    Phil.

    Hi Phil,
    Unfortunately, there is no portable way to define stateful web service endpoints in Java EE 5. It's a
    feature being considered for EE 6. The JAX-WS implementation in Glassfish/SJS AS has a couple
    ways to achieve statefulness, but they require that you use that specific JAX-WS implementation for
    the client instead of C#, which defeats some of the loose coupling benefits of web services.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for