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!

Similar Messages

  • Need help calling stateful web service from BPEL 10.1.3.1

    I found the tutorial located at http://www.oracle.com/technology/products/ias/bpel/htdocs/callingstatefulwsfrombpel.html which talks about how to call a stateful web service, it is also mentioned on Clemens Utschig's SOA blog.
    The problem is that the code for the handlers will not compile as given under 10.1.3.1 -- it seems that the method signature for the invoke method has changed in the interface com.collaxa.cube.ws.HeaderHandler
    Has anyone gotten this to work in 10.1.3.1 or can anyone give me a tip on how to call a stateful web service in a different manner from BPEL?
    Thanks!

    Hi,
    'm trying to call a username/password secured service,
    with
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">username</property>
    <property name="basicPassword">password</property>
    But getting the following exception,
    FAIL :: Cause : :exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Bad Set-Cookie header: JSESSIONID_twos=Lf1VTn7Q5KG5PhtJlGjTTM0nhhJ5FLyR51zZJLLBGfVs04VY8fmv!-728969536; domain=wosdev; path=/; secure=true, WLAUTHCOOKIE_JSESSIONID_btwosfportal=ZHfuVwF5kudqtHEoR6Ap; path=/; secure Expected ';' or ',' at position 131:
    Kindly help!
    Thanks,
    ChandraMouli
    Edited by: user13110451 on Sep 8, 2011 5:52 AM

  • Consuming a stateful web service

    We created and deployed a stateful web service(mail service) in J2EE. It is tested working fine for J2EE consumer. Now we need to create a client from SAP WebAs (abap side). We generated the proxy with logical port, having set those "State Management" and "Session Oriented-communication" features, which I believe supposed to be stateful.
    But the program crashed at the second time I call any method in the client proxy, for example, after "CALL METHOD mail_proxy->open_mail_session" to open a mail session, the "CALL METHOD mail_proxy->open_mail_store" throws an exception: "ICF Error when receiving the response: HTTP COMMUNICATION FAILURE".  It doesn’t matter which method  I used, it crashed on the second one any way. If I move the second method to the first call, the method will work fine but still crash on the 2nd called method.
    I need more information about how to make the client proxy and logical port working with a stateful web service.
    I will appreciate any hint, reference or suggestion!

    Hi,
    I am also creating a stateful web service for a standalone java client..
    Do we need to set the SESSION_MAINTAIN_PROPERTY on the client stub.It gives me a remote exception once I use this.Dont know how this web service keeps track of session..Pls advice
    Shashank

  • Special Character XML Web Service call from Flex

    Hi,
    Let me first give a little background.
    I have to query and return data in XML format. To do so, I have created a custom DSC component. In cases where XML has special characters, LC throws error saying that XML is not properly formed. To over come this issue I used CDATA tag at DSC component. Now LC works as it should and I returns correct result.
    I have a web service call from Flex to get this XML result. Every time i trigger this web service I get an error message saying </document> tag is missing.
    I understand in Flex, web service returned data is wrapped in CDATA tag, thats what i causing all this issue.
    I am not sure, how to handle this situation, I am sure this is a common problem and there should be ways to work around it.
    I would really appreciate if any one could point me in the right direction.
    Thank you ..

    The web service has four operations in it, I need pingQuery operation execution code since it doesnot need any input value.
    I have used code something like this.. Any one please correct me if I am wrong..
    <mx:WebService 
    <mx:WebService> id="webService" wsdl=""https://hydrogen.csd.sc.edu/axis2/services/AcademicHistoryService?wsdl
    >
    <mx:operation name="pingQuery"resultFormat="
    object"result="resultHandler(event);"
    fault="faultHandler(event);"
    >
    <mx:request>
    <PingQuerySpecification>
    <value>
    fsdf
    </value>
    </PingQuerySpecification>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    private function resultHandler(evt:ResultEvent):void {Alert.show(ObjectUtil.toString(evt.result));
    private function faultHandler(evt:FaultEvent):void {Alert.show(evt.message.toString());

  • ESB and Stateful web services

    Folks,
    I’ve got two web services that are called in succession. The first web service performs a search and caches the results on the server, returning only some basic information about how many results were found (in the payload) and a session id (as an attribute in a HTTP header). The second service is called afterwards, passing some page request information (in payload) and the session id (in the HTTP header). The session id is used to find the appropriate search results and return them lazily (based the given page request information).
    The web service requests are done through ESB and OWSM. My problem, however, is that according to the ESB developer’s guide (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28211.pdf , page 5-29, ‘Limitations of ESB Header Support’) ESB is not capable of setting header attributes (at least not SOAP header attributes).
    Is it possible to use stateful web services with the ESB? If so, how is the SessionID handled on the ESB and how is it correlated with the clients of the ESB who are getting the results back from this stateful web service?
    Thanks in advance,
    Joseph

    Dave,
    We have invoked the two services mentioned above in four different manners using Java code.
    1. We are invoking the services through ESB with no success. The HTTP header (set-cookie) never makes it back.
    2. We are invoking the services through Web Services Manager (the services are registered directly with OWSM) with no success. The HTTP header (set-cookie) never makes it back.
    3. We are invoking the services through Web Services Manager (with ESB providing a wrapper for the services) with no success. The HTTP header never (set-cookie) makes it back.
    4. Invoking the services directly (no OWSM, no ESB). This method is successful. HTTP headers are being exchanged without incident.
    We are using Ethereal to check out the traffic going back and forth so we can see the SOAP headers getting propagated back and forth as you had mentioned. The problem is that the HTTP headers (as mentioned in my first posting) containing the session information are getting dropped when using ESB or Web Services Manager.
    Any suggestions?
    Thanks,
    Joseph

  • Web Service Implementation Heavily Based on The Singleton Pattern

    Dear all
    I have recently joined a project that is 2/3 through development of a medium sized application providing synchronous and asynchronous implementations for a number of Use Cases exposed as Web Services. The design is one that I have not come across before and am keen to understand.
    Web Service calls enter the application through a singleton, which in other respects is a POJO. This class manages a number of instance variable references to other classes responsible for implementing each Web Service method, including data access using Hibernate. Since the top level singleton class is, well, a singleton, I understand this to mean that all of the other classes maintained as instance variables will themselves only ever have one object instantiated (assuming of course that no other thread of execution instantiates them except our singleton WS entry point). To my way of thinking this turns the whole of the Web Service implementation into a kind of singleton application. This strikes me as a procedural programming idiom that happens to be implemented using Java, since Objects with state are not being used. I have not yet asked the question "why?" of my new colleagues but I would like to ask you what the consequences of this design are likely to be. Particularly considering that this application will be expected to handle concurrent servicing of Web Service requests - and so be thread-safe. Can it be thread safe? Are there likely performance implications? Forgive my ignorance is what I describe known as a Singleton Web Service?
    Regards
    David

    Web Service calls enter the application through a
    singleton, which in other respects is a POJO. I'm confused about this sentence. Is the application somehow separate from the web service? Is the application acting as a service to this web service? How is the application being hosted? Does it run in a container as well?
    This
    class manages a number of instance variable
    references to other classes responsible for
    implementing each Web Service method, including data
    access using Hibernate. If all the references are stateless, preferably interfaced-based, you aren't likely to have thread issues.
    Since the top level
    singleton class is, well, a singleton, I understand
    this to mean that all of the other classes maintained
    as instance variables will themselves only ever have
    one object instantiated (assuming of course that no
    other thread of execution instantiates them except
    our singleton WS entry point). To my way of thinking
    this turns the whole of the Web Service
    implementation into a kind of singleton application.You keep using web service and application. Are we just talking about a web service implementation here?
    This strikes me as a procedural programming idiom
    that happens to be implemented using Java, since
    Objects with state are not being used. You are correct, sir. If services are stateless, and they should be, then they aren't exactly rich objects with state and behavior. It's very procedural, indeed.
    I have not
    yet asked the question "why?" of my new colleagues
    but I would like to ask you what the consequences of
    this design are likely to be. Particularly
    considering that this application will be expected
    to handle concurrent servicing of Web Service
    requests - and so be thread-safe. Can it be thread
    safe? If the web service is indeed stateless, then it should be thread-safe.
    Are there likely performance implications?Maybe. Best to measure if those arise to see if the web service is the cause.
    Forgive my ignorance is what I describe known as a
    Singleton Web Service?I don't know if it's been given a pattern name. If it's a Singleton, then that's true. If it's a service, that applies. If it's deployed on the web, I'd say the label fits.
    %

  • SuperWebservice supporting stateful Web Service

    Acelet (http://www.acelet.com) has released a new version of Super with SuperWebservice supporting stateful Web service and SuperLogging combining traditional logging and LimpidLog. LimpidLog is a revolutionary logging: there is no need to hard-code logging statement. LimpidLog is an open source program.

    When building the service, there is an option to deploy a stateful service: check the stateful checkbox, in the step 2 of the wizard - Methods definition.
    On the client side, you will have to enable HTTP based cookie, so that the client remember the JSESSION cookie.
    Hope this helps,
    Eric

  • OAAM web services implementation class for WebSphere 6.1

    Hi All,
    My client is running OAAM 10.1.4.5 and looking to migrate to WebSphere 6.1. I'd like to replace the (default) Apache Axis web services implementation class with a custom-built WebSphere 6.1 implementation class. Does anyone have any code they'd been willing to share?
    Regards,
    Steven

    It is may be because BO is not ready for Java 2 and you can find more info about readyness of applications at
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/csec_rsecmgr2.html
    I am not sure if BO is prepared for the very fine-grain access control programming model that Java 2 security is capable of enforcing.
    May be some one from PG should be able to answer readyness of BO with Java2.
    -Gokul.

  • SOAP, Web Service Interaction using Flex 2

    A Web Service exists on the local computer. It is a .NET
    Framework web service (SOAP) running under IIS. It commences with a
    demand for three parameters. One fills in the form and presses a
    button on the form and is returned an XML file with vital data
    necessary for future web service transactions that will involve
    SQL-form queries and XML responses. Actions that Flex 2 is required
    to perform: 1) submit a URI and receive a form, 2) POST a response
    to the form and receive an XML file, 3) submit a query, 4) reformat
    an XML file to remove irrelevant data and to make a Flex 2 data
    provider happy so that a chart can be displayed. I assume Flex 2
    can do all these things and it is just a matter of knowing how.

    Your description is a bit confusing. The webservice in
    question has a single method that takes three parameters, and
    returns a FORM? What are the three parameters, and what, exactly,
    do you mean by "form".
    When I hear "form", I usually think of an HTML form with text
    input fields, comboboxes, radio buttons, etc. But, in general,
    properly developed webservices do not return UI elements (such as
    text input fields, comboboxes, and radio buttons). They are
    typically only used as a communication method in the model layer,
    where they return datasets or process responses. And the view layer
    (in this case, Flex) is responsible for building any UI elements
    that collect data for the interaction with the webservice.
    But, okay, let's say, for some odd reason, this webservice
    returns a form (as I am thinking of the term). What format is this
    form in? I personally can't think of a readily available method
    that could display this form with a Flex app, but maybe I'm missing
    something. Or is it that, by "form", you mean something completely
    different, like a second method in the webservice that receives
    posted data? What is actually returned in your step #1?
    Step #2 is a cinch. Simply create an HTTPService tag (or in
    script, create URLLoader and URLRequest objects) in your app that
    posts the appropriate data to the appropriate webservice URL with
    the appropriate method. In the callback handler function for that
    webservice call, a (properly formatted) XML response will be
    converted automatically to a "Flex-friendly" data object, which you
    can easily parse apart to build your SQL as necessary.
    Step #3, again, where do you submit the query to? A third
    method in the webservice? If so, it would be just like #2 above.
    And the response data would, again, be automatically converted into
    a Flex data object.
    Step #4 would probably be accomplished more by manipulating
    the Flex data object rather than any reformatting of the XML.
    Simply loop through the object and remove irrelevant children/data.
    Then set a bindable variable to the cleaned data object, and have
    your chart bound to that variable.
    There are many many examples on the web. Just search for
    'flex "mx:HTTPService"' or similar. And take a look through
    LiveDocs for [Bindable] for step #4.

  • WS-Security, WSE, Web Services, Authentication and Flex 2

    Hey All,
    I've been working hard on getting Flex to communicate with a
    Microsoft .NET 2.0 Web Services project enabled with WSE 3.0
    WS-Security. I can't seem to get the headers into the SOAP request
    that I need.
    For example, I can get a SOAP header into the message like
    so:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <ns0:Security xmlns:ns0="
    http://tempuri.org/">
    <ns0:password>pass</ns0:password>
    <ns0:username>DOMAIN\Administrator</ns0:username>
    </ns0:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <HelloWorld xmlns="
    http://tempuri.org/" />
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    .. but, this isn't what my WSE, WS-Security enabled service
    expects. Which is:
    <soap:Envelope xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="
    http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:wsse="
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
    <wsa:Action>
    http://tempuri.org/HelloWorld</wsa:Action>
    <wsa:MessageID>urn:uuid:5be8b55a-df7b-4547-8def-76282fcd8b47</wsa:MessageID>
    <wsa:ReplyTo>
    <wsa:Address>
    http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsa:To>
    http://localhost/CampaignMojoAPI.asmx</wsa:To>
    <wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp
    wsu:Id="Timestamp-aab299a8-81e3-4d8a-bfa4-555f38978584">
    <wsu:Created>2007-06-06T20:26:37Z</wsu:Created>
    <wsu:Expires>2007-06-06T20:31:37Z</wsu:Expires>
    </wsu:Timestamp>
    <wsse:UsernameToken xmlns:wsu="
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    wsu:Id="SecurityToken-b43668b1-51a3-4ba1-a90a-69eca3b98b66">
    <wsse:Username>DOMAIN\Administrator</wsse:Username>
    <wsse:Password Type="
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#Passwor dText">pass</wsse:Password>
    <wsse:Nonce>IK4ZemfS1pj3kpdYO5+FBg==</wsse:Nonce>
    <wsu:Created>2007-06-06T20:26:37Z</wsu:Created>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    <soap:Body>
    <HelloWorld xmlns="
    http://tempuri.org/" />
    </soap:Body>
    </soap:Envelope>
    I've tried "addSimpleHeader" and "addHeader", but both seem
    to inject nested xml elements. Can anyone help me shape this WS
    call into the format I need it in? Would it be possible to call
    this WS manually via a direct HTTP post from Flex 2?
    Thanks!,
    Sean

    Yeah,
    Hey guys - thanks for the responses. I looked into this and
    it seems no one uses WS-Security from the browser. That's why even
    Google's APIs use alternative key logins, etc. I read from one user
    that in the next version of Microsoft's AJAX platform that they
    might support it, but that's about it. For now, it looks like
    there's not even an AJAX/Javascript way to do this. If we could do
    it via Javascript, then we could use the FABridge. I don't think
    Flex supports it. I've tried to manipulate the headers into place
    via Flex classes and I don't think enough control is there to get
    the output in the form that's needed.
    I think it's possible to write it in Javascript. But right
    now my time budget just doesn't allow for it. I already spent two
    whole days re-writing how Flex makes Web Service calls so they're
    synchronous with timeouts instead of this massive amount of
    asynchronous code they want you to write, so no more
    re-writing/extending of components for me for a while.
    But if anyone wants to work together to support it via
    AJAX/Javascript, I would invest money into developing it.
    I would like a public WS-Security AJAX/Javascript framework
    for making these calls via WS-Security so I can offer customers a
    standard way of accessing/authenticating against our public API
    set. It would also make it possible for Flex to access standard web
    services with WS-Security enabled.
    Let me know what you guys think, or if anyone else has any
    good suggestions/software.
    Thanks much,
    S.

  • Xml encoding on web service request in flex 3

    The encoding of xml on the <mx:request> tag has changed
    as of flex 3 build 185179. In prior builds I could bind a variable
    that contained an XML fragment and it was left untouched. As of
    build 185179 the "<" and">" characters are encoded as
    &lt; and &gt; respectively. This breaks web services that
    expect XML fragements as parameters, i.e. Microsoft SharePoint Web
    Services. See attached code that used to work. Variables v and q
    are determined at runtime. They are XML fragments set in
    actionscript prior to calling the web service.

    How are you calling the WebService from Flex??
    I was seeing a very similar error when I tried to use the Generated Web Service classes to call my web service.  But it didn't happen with the MXML approach.
    Sorry I don't have an answer as to what causes this, I have been searching the web, posted here....
    I'll follow up if I find anything.

  • Consuming stateful web service via ABAP proxy

    Hi all,
    I´ve got the following scenario. I´ve a ABAP proxy generated based on a WSDL file. The provider is a WebService provided by a tomcat server. (no PI etc. as middleware). The problem i´ve now is that the webservice is stateful so I need a stateful communication between my ABAP report (client) and the Web Service.
    I´ve already found the possibiliy to switch on the feature "Session-Oriented Communication" on "Preconfiguration Tab" of the ABAP Proxy Screen. But unfortunately it´s not working.
    Anybody knows whether general system settings has to be changed for this. Or anybody has other tips.
    I´m currentliy working on the SAP Discovery System v3 which is a Netweaver 7.0.
    Many thanks in advance for your answers,
    Andy

    Marcelo  Almeida wrote:
    > You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:
    >
    > TRY.
    >
    > CREATE OBJECT my_proxy
    > EXPORTING
    > logical_port_name = 'LP01'.
    > CATCH cx_ai_system_fault.
    > ENDTRY.
    >
    > TRY.
    > input-airline_id = p_carrid.
    > input-connection_id = p_connid.
    > input-flight_date = p_fldate.
    >
    > CALL METHOD my_proxy->flight_get_detail
    > EXPORTING
    > input = input
    > IMPORTING
    > output = output.
    > CATCH cx_ai_system_fault.
    > CATCH cx_ai_application_fault.
    > ENTRY.
    >
    > Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).
    Hi,
    thanks for your answer. It´s working!
    Cheers,
    Andy

  • Caching the web service data in Flex 3.0

    Hi,
    I want to do the following task
    I am loading about 10000 records from MS SQL database into
    Flex data grid using web service on CreatinComplete event of an
    application in Flex 3.0.Now if I have done this and I press Browser
    refresh button, this time it should not call web service againg but
    it shold display the same data from the cache.
    Is there any way to achive this.
    If not can any one tell me how to handle huge data in flex
    using MS SQL and .NET

    Question is what technology of J2EE u are using!
    If it is EJB, then the fastest way would be to generate one more webservice and connect this one to WD.
    This way you also can check if the webservice delivers any data with the testing environment.
    Regards,
    Benny

  • Web service call in Flex

    Hi ,
    Could anyone help me on how to consume a webservice in flex builder 3?
    Though I have followed the steps mentioned in the Link:[http://blog.danmcweeney.com/57], i am not gettiing anyoutput.
    Hence it could be nice if you explain me on this with a simple example.
    Thanks and Best Regards,
    Vinoth

    Hi Vivek,
    I tried this example. But it doesn't work in my case. I used the following flex code.
    <mx:WebService id="ws" useProxy="false" showBusyCursor="true"
    wsdl="C:\Users\Edgar Meyer\Documents\WSDL\BAPI_FLIGHT_GETLIST.wsdl">
    <mx:operation name="FlightGetlist"
    resultFormat="e4x" result="result_getAll(event)" fault="fault_getAll(event)" >
    <mx:request>
             <parameters>        
             <Airline>LH</Airline>        
             <DateRange>
             <item>
             <Sign>I</Sign>
             <Option>GT</Option>
             <Low>20010701</Low>
             <High></High>       
             </item>
             </DateRange>       
             <DestinationFrom><item/></DestinationFrom>        
             <DestinationTo></DestinationTo>        
             <ExtensionIn></ExtensionIn>        
             <ExtensionOut></ExtensionOut>        
             <FlightList><item/></FlightList>        
             <MaxRows></MaxRows>        
             <Return><item/></Return>
             </parameters>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    I got the following message when I execute the example:
    Unexpected parameter 'parameters' found in input argument.
    As you can see I used a local wsdl file.  I generated a new web service in the SAP system and crested the local wsdl file using the soamanager.
    Any idea why this is not working in my case?
    Best regards, Eddy

  • Closing stateful web service connections

    Hi All,
    I've created a staeful web service(in ABAP) and we are doing load tests for 50-100 concurrent users on this webservice.
    After some time we are getting invalid response time exceptions while calling the web service.
    In transaction SM04 , we observed all the (HTTP connections)stateful connections are opened and after reaching  1000 users its anot allowing further webservice calls.
    How can we close the staeful web service connections  . I am cosuming this web service in java.
    I've created  standalone proxy .
    Please let me know.
    Thanks,Anilkumar

    hi,
    this is a very interesting question. Since I didn't know how the WAS ABAP actually supports stateful webservices at all I did research it a little. It seems that there is no standard for stateful webservices in existence (yet?). So there seem to be two mechanisms actually used to maintain session (in the world not SAP), one by (mis)using WS-Adressing and the other one by simply using HTTP sessions (cookies). Using WS-Addressing would be reflected in the WSDL which isn't the case (Rel. 7.0). So this must be achieved by HTTP session cookies.
    In HTTP session management there is, AFAIK, no mechanism to allow the  client to explicitly close a server session. Usually the client destroys it's session and the corresponding server session simply times out because it is not called for a certain amount of time.
    Second, IMHO, such a session is not much good for (apart from getting rid of successive authentication) as long as the application cannot access the session information. I am not aware how a function module underlying a webservice can access this session information.
    In conclusion, I would be very interested if you could share a bit on how youse stateful connections and what you can achieve with it.
    regards, anton

Maybe you are looking for

  • Better Performance ; View or derived table

    Hi, I need to know which one will perform better. Approach I: Create view view_table1 as select field1,field2,field3 from table1 where field_ind = 'Y'; Select A.field1,B.field3 from table1 A, view_table1 B where a.field1 = b.field1 and a.field2 = b.f

  • Get the object size in bytes (every object)

    i am wonder what is the size of the object like Number or String or Object in bytes and how can one find out what is the size of it (in AS2 without byteArray) please...

  • My Creative Suite Won't Work!!!

    I have CS3 for an ad agency that only takes that version EPS...anyways, I have been using it for 2 months while working here and now it's suddenly not working.  I try to open it up, a blank POP UP box arrives and the whole menu bar is greyed out with

  • Premiere CS5 *only* displays Frames timecode.

    I'm using Premiere CS5 to edit some screen capture footage from Camtasia. As such, it has no embedded time code. Once in Premiere, all the displays only show 'Frames'. Normally I can Ctrl+click on the timecode displays to change their format, but in

  • Audio book

    I have a Dell Computer and Itunes on it for my Ipod nano. I have transfered an audio book from my old computer to my new one but I want to put it in the audiobook section. I tried to convert all songs to ACC and it says they are ACC when itunes is op