Does WL70 Web Service Support Sessions?

Does anybody know how to make WL70 Web Service support sessions?
The "javax.xml.rpc.session.maintain" property on Stub does not seem to work.
Without session support, it is almost no use for us because we have to authenticate
the user each time.
Thanks in advance.
- Hao

It is just not working for me. I am using static stub.
After tracking the HTTP traffic, I found that the WL70 server is not issuing any
cookie. I have configured all the parameters for tracking session in the web application,
but I still don't see any cookie in the HTTP headers from the server. I also tried
to invoke the service using a browser, still no cookie seen. Is this a bug or
there is some other configuration for the server?
- Hao
"manoj cheenath" <[email protected]> wrote:
By default client will maintain the session. You dont have to set this
property.
Are you using static or dyn client?
Also, you should use the same instance of the stub for all your invokes
(all invokes to be in the same session).
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:[email protected]..
It is not working for me.
When I set the "javax.xml.rpc.session.maintain" property, weblogicthrows
"UnsupportedOperation"
exception and be default I don't see any session information beingpassed.
How do I configure the client side or even the server?
Thanks.
- Hao
"manoj cheenath" <[email protected]> wrote:
WL70 client does support http session. Is this not
working for you?
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:3d6402ac$[email protected]..
Does anybody know how to make WL70 Web Service support sessions?
The "javax.xml.rpc.session.maintain" property on Stub does not seemto
work.
Without session support, it is almost no use for us because we haveto
authenticate
the user each time.
Thanks in advance.
- Hao

Similar Messages

  • Does web service support all the properties in the standalone BI console?

    Hi,
    Currently I am using BI web service API to get the report and its parameters and so on. But I find that the object definition in the web service can't be full defined to match the properties in the console UI. For exaple, ReportDefinition object there is no description property, so I can't get the desc by the ReportDefinition object (By now I don't know how to get it). Another sample is, there is no Parameter object defined in the web service, only ParamNameValue object, so I can't get the default value for the parameter defined in the console UI.
    Is there any solution for me?
    HELP!!!

    It is just not working for me. I am using static stub.
    After tracking the HTTP traffic, I found that the WL70 server is not issuing any
    cookie. I have configured all the parameters for tracking session in the web application,
    but I still don't see any cookie in the HTTP headers from the server. I also tried
    to invoke the service using a browser, still no cookie seen. Is this a bug or
    there is some other configuration for the server?
    - Hao
    "manoj cheenath" <[email protected]> wrote:
    By default client will maintain the session. You dont have to set this
    property.
    Are you using static or dyn client?
    Also, you should use the same instance of the stub for all your invokes
    (all invokes to be in the same session).
    regards,
    -manoj
    "Hao Chen" <[email protected]> wrote in message
    news:[email protected]..
    It is not working for me.
    When I set the "javax.xml.rpc.session.maintain" property, weblogicthrows
    "UnsupportedOperation"
    exception and be default I don't see any session information beingpassed.
    How do I configure the client side or even the server?
    Thanks.
    - Hao
    "manoj cheenath" <[email protected]> wrote:
    WL70 client does support http session. Is this not
    working for you?
    regards,
    -manoj
    "Hao Chen" <[email protected]> wrote in message
    news:3d6402ac$[email protected]..
    Does anybody know how to make WL70 Web Service support sessions?
    The "javax.xml.rpc.session.maintain" property on Stub does not seemto
    work.
    Without session support, it is almost no use for us because we haveto
    authenticate
    the user each time.
    Thanks in advance.
    - Hao

  • Creating web services from session beans

    Hi everybody,
    I want to know how to generate web services using session beans in Weblogic Worshop.
    I need this urgently!!!
    Any help will be very much appreciated.
    Can anybody please help me......
    Thanks,
    Neelima

    Hello,
    Have you tried the tutorial?
    http://e-docs.bea.com/workshop/docs81/doc/en/wls/tutorial/ejbtutorial.html
    For urgent help, please make use of our excellent support team:
    http://support.bea.com
    Thanks,
    Bruce
    Neelima wrote:
    >
    Hi everybody,
    I want to know how to generate web services using session beans in Weblogic Worshop.
    I need this urgently!!!
    Any help will be very much appreciated.
    Can anybody please help me......
    Thanks,
    Neelima

  • Web Services support for collection like ArrayList

    Getting this error message:
    "<Info> Did not find property empty in java.util.ArrayList:
    java.lang.NullPointerException"
    Are collections like ArrayList supported or am I trying to do something that
    can't be done? Any suggestions?
    Thanks
    Danny

    Hi Danny,
    Betcha thought I forgot 'bout cha, huh?
    I didn't ;-)
    The short answer to your question is no; WLS 6.1 does not support using any of
    the classes in java.util.*. However, it does support Object arrays as an element
    of an Object array, which means you can have code in you service implementation
    that looks like this:
    public Object[] getNestedObjects()
         Object[] objects = new Object[2];
         objects[0] = new Object[]{
              new String("23.76"),
              new Float((float)23.76)
         // Here, WorkOrder is a JavaBean or an object
         // that implements weblogic.soap.xml.XMLizable
         WorkOrder[] workOrders = new WorkOrder[]{
                        new WorkOrder(),
                        new WorkOrder(),
                        new WorkOrder()
         objects[1] = new Object[]{
              new String("My name is"),
              new String("Slim Shady"),
              workOrders
         return objects;
    The main issue I see with doing this is again, interoperability ;-)
    If the SOAP toolkit consuming the WSDL for the web service with the above method
    cannot handle the "xsd:anyType" XML Schema data type, you're in trouble. In general,
    SOAP toolkits want to know what type an element is so they can process it correctly.
    When you use a Variant data type (in Visual Basic) or java.lang.Object (in Java),
    you are basically promoting the use of weak data typing (or late binding). From
    what I've read about SOAP (well, actually what Don Box said he had in mind), XML
    Schema and namespaces were adopted to combat this very thing- weak or no data
    typing. Personally, I agree ;-) I think strong data typing makes processing a
    SOAP request much easier and faster, for everyone. Don't get me wrong, I don't
    have anything against object casting, but SOAP parameters (and return values)
    are not objects. They are XML elements, just like the other parts of the SOAP
    message. There is no behavior, just state. This being the case, isn't it safer
    to stick with the data types (e.g. arrays, structures, primitives, etc.) defined
    in the SOAP spec and "XML Schema Part 2: Datatypes" document? Enough SOAP boxing
    (pun intended). If you are interested in the "complexTypes" object graphs (using
    developer defined classes that implement weblogic.soap.xml.XMLizable) lab results,
    I can send you a zip. The biggest difference between using JavaBeans and objects
    that implement weblogic.soap.xml.XMLizable, is that you have much more control
    over which Java objects the later gets serialized/deserialized to/from. With classes
    that implement weblogic.soap.xml.XMLizable, the SOAP processor passes you the
    actual XML stream for the SOAP parameter (which in this case, is your developer
    defined class). It (the SOAP processor) also calls your developer defined class
    to get an XML representation for it's data types. It works great with Java clients
    (using the client.jar, of course), and I'm trying it out with .NET and MS SOAP
    clients this weekend. The most interesting revelation was figuring out how wsgen
    (well, actually the WSDL processor) generates the information in the <types> element
    of the WSDL ;-) I actually even know how to code an XMLizable so that it produces
    the exact element and attribute names I want. I also figure out how to get it
    to produce an <element ...>, as opposed to a <attribute ...>, and visa versa.
    Of course, WLS 7.0 (and WebLogic Workshop) make all of this a moot point, but
    it was fun to get the SOAP/WSDL processors in WLS 6.1 to "do my bidding" for a
    short while ;-)
    Regards,
    Mike Wooten
    "Danny Ngo" <[email protected]> wrote:
    >
    Hi Mike,
    Thank you for your response. Do you know if WLS 6.1 Web Services support
    the
    return of nested object array (object that contains other object arrays).
    Thanks
    -Danny
    "Michael Wooten" <[email protected]> wrote:
    Hi Danny,
    For interoperability (with non-Java SOAP implementations)reasons, the
    Java collections
    are not supported in WLS 6.1 ;-) You should consider using an arrayin
    place of
    this.
    Regards,
    Mike Wooten
    Danny Ngo <[email protected]> wrote:
    Getting this error message:
    "<Info> Did not find property empty in java.util.ArrayList:
    java.lang.NullPointerException"
    Are collections like ArrayList supported or am I trying to do something
    that
    can't be done? Any suggestions?
    Thanks
    Danny

  • How Web Services support transactions ?

    Hello,
    I have this questions:
    - Web services support statefull?
    - There is some specification about 2PhaseCommit for Web Services?
    - How Web services handle transactions (commit, rollback)?
    - How can I handle commit across multiple systems (using web services)?
    There are standards that support this topics?
    Best regards,
    Luis Carlos

    Yes and no. <a href="http://www.w3.org/Protocols/rfc2109/rfc2109.txt">rfc2109</a> . This means that cookies provide a kind of session and therefore state, which can be hold on server side.
    SAP ABAP ERP holds session:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm">Providing and Consuming Web Services</a>
    "WSDLs - There are two kinds of WSDLs – Standard and SAP WSDL. The standard WSDL is provided for those users who will use tools from other vendors to create clients. For SAP users, there is an extended SAP WSDL. This is an extended version of WSDL and can be parsed using SAP tools (SAP Proxy Generator), thus providing information about additional Web service requirements such as authentication, session, and so on."
    for me is also the technical implementation - how is the webservice session managed on server and on client -  not totally clear. If someone can help me to find exaxct technical details. Unfortenately I also always used it (esp. with Web Dynpro) without thinking about details.

  • WebLogic 10.3.0, web-service enabled session beans, and CMT transactions

    Does WebLogic 10.3 support CMT for JAX-WS Web-Service enabled EJB 3.0 session beans?
    When a client invokes the following Web service:
    @WebService
    @Stateless
    @TransactionManagement( TransactionManagementType.CONTAINER )
    public class TestService       
        @WebMethod   
        @TransactionAttribute(TransactionAttributeType.REQUIRED)
        public String echo( @WebParam( name = "param" ) final String param)
            Context context = new InitialContext();
            TransactionSynchronizationRegisttry registry =
              (TransactionSynchronizationRegistry)
                context.lookup( "java:comp/TransactionSynchronizationRegistry" );
            registry.putResource("foo", "bar");
            return param;
    }WebLogic throws this exception:
    SEVERE: Transaction does not exist
    java.lang.IllegalStateException: Transaction does not exist
         at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2033)
         at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2029)Is this a bug in WL 10.3.0?
    Thanks in advance.
    Edited by: user572625 on Aug 18, 2011 12:29 AM

    This is fixed now. Someone had defined a Servlet for the web service in web.xml that was preventing the EJB container to kick in.
    Edited by: user572625 on Aug 25, 2011 11:54 PM

  • Plugin based Web Service with session management

    I am trying to make a web service in java with jax-ws that should support extensions to the service without rebuilding the project. I thought it might be possible to make a standard web service and the let each plugin create their own service, making the client side plugin point to both the standard service and the plugin specific one. This way I could have user management and such in the standard service and the more plugin specific one in an other service. The problem is though, how do I make a common session for all the services? All services are running at the same server and on the same domain name.
    I checked the HTTP headers and found out that the JSESSIONID was changing when I created a new port on the client side. I was trying to implement a SOAPHandler to edit the cookie in the HTTP header, hoping that this will lead to the same session across the services. But found it hard. It was no problem reading the "Set-cookie" header, setting the cookie on the new requests was harder, as the CookieJar object seems to be internal [1]. And the MessageContext.HTTP_REQUEST_HEADERS wasn't created at the time my handlers run. Is there an easy solution to this?
    I am not sure if my idea is a good solution to the main problem, and all other ideas are more than welcome. I hope it is possible to extend the features of my server without rebuilding the project. If anything is unclear, feel free to ask :)
    [1] com.sun.xml.internal.ws.client.http.CookieJar

    Adhir_Mehta wrote:
    Could you explain plug in scenario with one example?Ok. We have not chosen exactly how to do this, but the idea is that someone may be able to extend the functionality of our server without rebuilding the project. We thought of something like a jar file with a implementation of some abstract classes. It should at least only be necessary to redeploy the project into the web container. The problem is; how do we let the plugins extend our web interface? One solution we thought of was to let each plugin have it's own service and dynamicly link to the plugin services from the main service that we provide as standard in our server. This way we may have some kind of plugin support on the clients as well, making the client side plugins know what kind of service it needs on the server side and thus extending the functionality all together.
    Hope that explains our scenario. Feel free to comment and add new ideas :)
    Regarding session management, its not advisable to manage the session in web services since that way it will become non interoperable.The documentation we found regarding sessions and jax-ws was all doing sessions with HTTPSessions, and to let the web container handle that.
    On the server side
        @Resource
        private WebServiceContext wsContext;
        private HttpSession getSession() {
            MessageContext mc = wsContext.getMessageContext();
            return ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession();
        HttpSession session = getSession();
        session.setAttribute("User", user);On the client side
    ((BindingProvider)port).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY,true);Do you have other standard options for us on how to do session management? All ideas are more than welcome

  • How web services support SAP transactions

    Hi ,
    How does webservices technology support SAP t-codes?
    Regards
    Raju

    Yes and no. <a href="http://www.w3.org/Protocols/rfc2109/rfc2109.txt">rfc2109</a> . This means that cookies provide a kind of session and therefore state, which can be hold on server side.
    SAP ABAP ERP holds session:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm">Providing and Consuming Web Services</a>
    "WSDLs - There are two kinds of WSDLs – Standard and SAP WSDL. The standard WSDL is provided for those users who will use tools from other vendors to create clients. For SAP users, there is an extended SAP WSDL. This is an extended version of WSDL and can be parsed using SAP tools (SAP Proxy Generator), thus providing information about additional Web service requirements such as authentication, session, and so on."
    for me is also the technical implementation - how is the webservice session managed on server and on client -  not totally clear. If someone can help me to find exaxct technical details. Unfortenately I also always used it (esp. with Web Dynpro) without thinking about details.

  • Generating web service from session bean

    Hi
    I have a session bean in one project which has a service-endpoint defined.
    My web services are in another project entirely, within the same workspace if that helps any.
    When I generate the web service from the EJB JDev turns the business tier project into a web project,
    I don't see any options to include the web service in the web project.
    I've reversed all of the changes, but wonder if I shouldn't redo it and copy the mapping file and configuration
    across to the web project and reverse the changes in the business tier.
    This is a workaround that I'm hoping to avoid, as I'm doing the "howto" for this in our project.
    How is this normally done?

    I tried generating the web servioce from WSDL, in the web project.
    I tested and the web service works fine.
    Then I changed the config file to point to the ejb, but the server won't start up....
    *08/09/17 10:58:40 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.*
    This is the webservices.xml bit I updated...
         <ejb-link>SomeOrOtherEjbName</ejb-link> The bit I found in webservices.xml when the service is in the business tier.
    <!-- <servlet-link>SomeOrOtherWebServiceSoapHttpPort</servlet-link> --> The service that works in the web tier.

  • Web service authentication/session management using Axis2

    I'm creating a web service using Axis2 where the client will need to login to the service and maintain a session. I'm trying to figure out a good way to do this. I've read the article on the following link:
    http://www.developer.com/services/article.php/3620661/Axis2-Session-Management.htm
    and it describes 4 main ways of doing this: Request Session Scope, Soap session scope, Transport session scope, and Application scope. However, it doesn't give much detail in actually implementing this. It says to add a parameter to services.xml like this:
    <service name="foo" scope=" transportsession">
    </service>
    but what about the actual code that goes in the server and client to actually handle the login process and verify the username/password in an SQL database on the server? I'm having a lot of trouble finding a good tuturial on this. Can anyone point me in the right direction? I'm also open to other ideas that don't necessarily directly involve Axis2.

    Session management for a web service and already answered. Locking.

  • WCF Web Service Support

    Does Xcelsius support Microsoft Windows Communication Foundation Web Services? I've downloaded the trail version of Xcelsius Engage 2008 and when I try to load a WCF WSDL I get an error message stating Unable to Load.
    Thanks in advance,

    Hi Zhong,
           Thanks you for your reply and shared link. I have read that post before i post here. I'll read again.
           I do understand on "PreAuthenticate" like this. I'll be receive 401 first request if i set "PreAuthenticate=true". Because i haven't pass authentication to server. After authentication is successful
    I'll receive 200. So response should be like 401,401,200. Same as your explanation to me.
    But it does not mean it'll send the authentication information the first time HttpWebRequest send request to the server. So the server will give you a 401 response at the first request, then the HttpWebRequest will resend the request with the Authentication header information.
    In the subsequent requests, the authentication information will be cached.
     But why i got 401 again after i passed authentication to server and server already cached the authentication. It should be
    401,401,200,200.
     Now i got 401,401,200,401,200. I confuse on this part.
     If i use below code
    // Below is work but i can't use for my requirement.
    _Cred = new NetworkCredential("user", "password", "domain");
    credCache.Add(new Uri(url), "Negotiate",
    _Cred);
    req = (HttpWebRequest)WebRequest.Create(url);
    req.PreAuthenticate = true;
    req.Credentials = credCache;
    resp = req.GetResponse();
    if (req.HaveResponse)
    resp.Close();
    req = HttpWebRequest.Create(url) as HttpWebRequest;
    req.PreAuthenticate = true;
    req.Credentials = credCache;
    resp = req.GetResponse();
    if (req.HaveResponse)
    resp.Close();
    I'll get 401,401,200,200. Third time response is 200. Only different is user name and password and DefaultNetworkCredentials.
       Am i misunderstand on this? I appreciate your help.
    Regards,
    Yukon
    Make Simple & Easy

  • Integration Web Service Support?

    Does the new Integration 7.0 BPM have web service/SOAP support?
    In particular, I would like to start my workflow from a web service call, or be
    able to call web services directly from tasks in my workflow. Can this be done?
    Please advise,
    Dave

    No it does not. You have two choices. There is a alpha plug-in available to call
    web services from a node task. It is for Integration 2.0. I have not been able
    to run it against 7.0. The other option is to utilize workshop. There is a sample
    on dev2dev. Search for integration interoperability.
    "David Mrozek" <[email protected]> wrote:
    >
    Does the new Integration 7.0 BPM have web service/SOAP support?
    In particular, I would like to start my workflow from a web service call,
    or be
    able to call web services directly from tasks in my workflow. Can this
    be done?
    Please advise,
    Dave

  • Web service - Support package

    Hi,
    Our scenario is based on ECC 6.0 sp12: soon many web service wil be created on that system.
    For this purpose an installation of suport package 14 is sufficient (to get not obsole platform)? Instead it is better for us support package above or enhancement package?
    we do not know if we will use Composition Environment with ESR and SR.
    Thanks.

    Hi,
    Enabling ECC with Enterprise Services is very tedious task and SAP is doing it for you by releasing new Enhancement Packs, so with every Ehp you get set of new services and improved features (for list of services visit here (available in pdf): http://help.sap.com/content/documentation/esoa/docu_esoa_erp.htm)
    If you don't want standard SAP services then you can always develop them by your own (but you must adhere to strict SOA governance to avoid SOA chaos). To develop custom build service there are two ways:
    - Bottom up: build RFC first and then convert it into services (not recommended)
    - Top down: you need ESR to model services and then you can develop those services in ECC.
    For your query on another thread:
    'check if you are on Ehp3 else only definition of service exist (no actual service exist on ECC), Secondly you can't edit standard provider class from SAP you must create copy of service and then enhance'
    I can not do the same thing with ECC sp14 with Composition Environment include ESR?
    ESR = Only definition of services (skeleton only)
    ECC = Actual implementation of service.
    Sometime people can see service in ESR but they wonder why they are not able to use it in ECC,  to be able to use them in ECC you must have corresponding Enhancement pack installed on ECC.
    Regards,
    Gourav

  • Web Services spawning sessions

    Hi All,
    I am facing a problem right now, exactly what is happening I am working in a project where we are using around 14 Web Services and they frequently interact with each other, Whenever this interation happens, a new Session is created, and if the con current users are more than say 40, there are many Live Sessions on the App Server, Now I want to know how to invalidate these Sessions, The Session Time Out setting is set to 60 minutes, thats the Business requirement. I can't lower it down. Kindly suggest from where else I can invalidate these Live Sessions as they are taking costly resources of the Server, and after 20-25 minutes the sites performance so too poor to work on.
    Thanx in Advance

    More details would help someoen narrow down this problem, what app server are you using? When you say they interact with each other, does this mean all the Web Service calls are intra-app server? What libraries are you using to run the WS interfaces and client calls?

  • Calling a web service from Session bean

    Hi Experts,
    Can anybody help in calling a web serivce frm a session bean's business method??
    Hw do we do that?
    I have one requirement where i want to send emails to set of users for which i have email sending web service ready.. How can i call it thru a session bean's business method???
    Pls help,
    Regards,
    Amey

    Hi Amey,
    This documents explains how to use an EJB as Web service endpoint: http://help.sap.com/saphelp_nwce10/helpdata/en/46/307a6c50094f09e10000000a114a6b/frameset.htm
    I hope this helps.
    Best regards,
    Ekaterina

Maybe you are looking for