RPC web service session beans and local interfaces

I am wondering if it is possible to use EJB 2.0's local
interface (vs remote interface) with 6.1's RPC web service
session beans. Since WLS generates the SOAP servlet that
invokes the RPC session bean and I do not find
a way to some how tell SOAP servlet to use local interface to
get the session bean's local home interface, I am not sure
this can be done.
Any comments would be appreciated.
Thanks.
Peter

Ta. Thanks for the info.
Any idea when Local I/F support is due?
-Nick
"Neal Yin" <[email protected]> wrote:
>
"Nick Minutello" <[email protected]>
wrote
in message news:3d4413a4$[email protected]..
I was just about to post the very same question - but for WLS 7.0.0.1.
There are essentially two questions:
1) (from a functional perspective)
Can I expose Local Interfaces as SOAP using the auto-generation(servicegen ant
tasks)?Local Interfaces support is coming.
2) (from a performance perspective)
Does the generated SOAP implementation go via the (expensive) RemoteInterface
(ie marshalling) - or is the RMI marshalling optimised out (by setting<enable-call-by-reference>true</>)?
You can set this option by yourself on your EJB. Web service runtime
doesn't
do any magic in this area.
Regards,
Nick
"Peter" <[email protected]> wrote:
I am wondering if it is possible to use EJB 2.0's local
interface (vs remote interface) with 6.1's RPC web service
session beans. Since WLS generates the SOAP servlet that
invokes the RPC session bean and I do not find
a way to some how tell SOAP servlet to use local interface to
get the session bean's local home interface, I am not sure
this can be done.
Any comments would be appreciated.
Thanks.
Peter

Similar Messages

  • [Weblogic 6.1] RPC Web Service Question

    Hello,
    I use Weblogic 6.1 sp5 and wanna do RPC Web Services to other platforms.
    I compiled a jar file(PAAPAppraisal.jar) into the RPC Web Service by "wsgen"
    and tested the RPC Web Service using a client program which is like below:
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface", PAAPMasterS.class.getName() );
    h.put("weblogic.soap.verbose", "true" );
    Context context = new InitialContext(h);
    PAAPMasterS service = (PAAPMasterS)context.lookup(url+"/PAAPAppraisal_web/PAAPMasterS/PAAPMasterS.wsdl");
    String empNo = "0404016";
    PageBean pb = new PageBean();
    pb.set("empNo", empNo);
    System.out.println("result : " + (String)(service.getEmailAddr(pb)));
    After excuting the client, an email string following "result :" cannot be seen on the shell.
    So I examined the server side, finding that the value of "empNo" didn't insert into PageBean Object in the server side.
    The PageBean class is something like this:
    public class PageBean implements java.io.Serializable
    The name of class is "PageBean", but it isn't a Java Bean. It's just a Java class.
    in the wsdl.jsp, The type of PageBean was defined below:
    <complexType name="PageBean">
    <sequence>
    <element name="allKeys" nillable="true" type="util:Vector"/>
    <element name="allElements" nillable="true" type="util:Vector"/>
    <element name="allKey" nillable="true" type="util:Vector"/>
    <element name="allValue" nillable="true" type="util:Vector"/>
    </sequence>
    </complexType>
    It's doubtful about the type definition of PageBean.
    The PageBean class has no allKeys property. It just has a getAllKeys() function.
    I want to use a PageBean like an Object type(that is, anyType), but wsgen compiles it into
    a complexType making elements like an allKeys.
    How can I use PageBean class as a parameter in the RPC Web Service?
    Thanks and regards.

    Hello,
    I use Weblogic 6.1 sp5 and wanna do RPC Web Services to other platforms.
    I compiled a jar file(PAAPAppraisal.jar) into the RPC Web Service by "wsgen"
    and tested the RPC Web Service using a client program which is like below:
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface", PAAPMasterS.class.getName() );
    h.put("weblogic.soap.verbose", "true" );
    Context context = new InitialContext(h);
    PAAPMasterS service = (PAAPMasterS)context.lookup(url+"/PAAPAppraisal_web/PAAPMasterS/PAAPMasterS.wsdl");
    String empNo = "0404016";
    PageBean pb = new PageBean();
    pb.set("empNo", empNo);
    System.out.println("result : " + (String)(service.getEmailAddr(pb)));
    After excuting the client, an email string following "result :" cannot be seen on the shell.
    So I examined the server side, finding that the value of "empNo" didn't insert into PageBean Object in the server side.
    The PageBean class is something like this:
    public class PageBean implements java.io.Serializable
    The name of class is "PageBean", but it isn't a Java Bean. It's just a Java class.
    in the wsdl.jsp, The type of PageBean was defined below:
    <complexType name="PageBean">
    <sequence>
    <element name="allKeys" nillable="true" type="util:Vector"/>
    <element name="allElements" nillable="true" type="util:Vector"/>
    <element name="allKey" nillable="true" type="util:Vector"/>
    <element name="allValue" nillable="true" type="util:Vector"/>
    </sequence>
    </complexType>
    It's doubtful about the type definition of PageBean.
    The PageBean class has no allKeys property. It just has a getAllKeys() function.
    I want to use a PageBean like an Object type(that is, anyType), but wsgen compiles it into
    a complexType making elements like an allKeys.
    How can I use PageBean class as a parameter in the RPC Web Service?
    Thanks and regards.

  • Remote and local interface on same ejb 3.0 bean instance

    Hi,
    Is it posible to get remote and local interface on same ejb 3.0 bean instance.
    For example get local interface of a bean and than pass it as remote to client.
    Both interfaces must operate on same bean instance.
    Thanks
    Zlaja

    yes. You can implement multiple interfaces on a single class, so you can add a local and a remote interface. One trick to avoid duplicate code is to simply make the remote interface extend the local interface; then you only have to add the @Remote annotation and you're done.
    For example get local interface of a bean and than pass it as remote to client.You don't pass an instances to a client, a client looks up a remote instance of the bean through JNDI.

  • OC4j and JAX-RPC Web service.

    Hello every one,
    this is actually coming from :
    OC4j 9.0.3 CMP/CMR and MVCSoft.
    Is it possible to develope JAX-RPC webservice using sun jdk with OC4J ?
    How can I do it ?
    Thanks.
    Giuseppe.

    Hi,
    I should have said that:
    I'm stuck with 9.0.3 as the 10.0.3 is a preview
    and the final release is not available until
    next summer.
    I guess 10.0.3 should be better as it is compliant with J2EE 1.4 which should include JAXRPC support.
    The problem with 9.0.3 is that being compliant with J2EE 1.3 it does not directly support JAX-RPC.
    So I was wondering How to develop Jax-RPC web service using OC4J 9.0.3.
    Sorry for to having specified the version.
    Thanks.
    Giuseppe.

  • Problem invoking RPC web service (Unbalanced ELEMENT)

    Hi folks!
    I am trying to create an RPC web service for an existing (and working) EJB using
    WebLogic 6.1 SP2, but I keep getting the following error message each time I invoke
    any of the available methods from the stateless session bean using a (static)
    test client:
    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException: Error
    at Line:12, token:[SPACE]     (
    )Unbalanced ELEMENT got:head expected:meta
         at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXElementFactory.java:67)
         at weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:136)
         at weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream.java:46)
         at weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
         at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:241)
         at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:171)
         at weblogicx.xml.stream.XMLEventStreamBase.startElement(XMLEventStreamBase.java:164)
         at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:86)
         at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:480)
         at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
         at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
         at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:27)
         at $Proxy0.testmethod(Unknown Source)
         at Client.main(Client.java:58)
    Does anybody have an idea what might be causing this problem? A search in the
    newsgroup archive suggests that this problem might be related to the WSDL interface
    file, although it is not clear to me how I can change that .wsdl file directly
    as I am using the wsdl.jsp file created using the Remote2WSDL function. Any help
    would be greatly appreciated!
    regards,
    Ekim

    Sorry, have no solution for you, but I can agree we with your observations, that only document literal style services work in a predictable fashion. (In 10.1.3.1.0)
    Message was edited by:
    taylor_tails

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Calling One Jax/rpc web service from another.

    We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
    I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
    So for example, if Web Service A needs to invoke an operation X in web service B,
    One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
    Is this is the best way to do it ?
    Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
    Any pointers will be greatly appreciated.
    Thanks
    RR

    Hi all,
    I've managed to get this working by using the following property settings:
    System.getProperties().setProperty("http.proxyHost", "Proxy_Hostname");
    System.getProperties().setProperty("http.proxyPort", "8080");
    System.getProperties().setProperty("http.nonProxyHosts", "localhost,hostbox09");
    And solving the authentication problem using this property setting on the java cmd line:
    -Dweblogic.net.proxyAuthenticatorClassName=com.mycompany.MyProxyAuthenticator
    This class is an impl class of weblogic.common.ProxyAuthenticator interface.
    The other thing to note is that MyProxyAuthenticator needs to be in the server pre_classpath.
    Then I just call JAX-RPC or JAX-WS web service client calls as normal.
    Regards,
    Paul

  • How to run a JAX-RPC web service

    I wrote the essential interface and classes to build a JAX-RPC web service, and I installed the J2SE 1.4.2 and Java Web Services Developer Pack 1.2 in Windows XP.
    I have read the Java Web Services Tutorial, but is so confusing for me.
    Anyone can provide the steps about the environment config, compile, package, and run the web service in Tomcat? thx

    I wrote these interface and class to create a simple web service:
    package test;
    import java.rmi.*;
    public interface HelloIF extends Remote {
    String sayHello(String s) throws RemoteException;
    package test;
    public class HelloImpl implements HelloIF {
    public String sayHello(String s) {
    return message + " " + s;
    I compiled these 2 and the *.class files exist in D:\backup\JAVA\fyp\test
    and then I wrote the config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service name="MyHelloService" targetNamespace="urn:Foo" typeNamespace="urn:Foo" packageName="test">
    <interface name="test.HelloIF" />
    </service>
    </configuration>
    I placed the config.xml in D:\backup\JAVA\fyp, then I type the following command:
    D:\backup\JAVA\fyp>wscompile -define config.xml -model model.gz
    the system response is:
    error: RmiModeler error: java.lang.ClassNotFoundException: test$HelloIF
    what's wrong?

  • WebLogic Web Services Home Page and authentication

    I've generated a set of web services using a session bean and have secured
    my EJB methods. I'd like to enable testing of these methods via the WebLogic
    Web Services Home Page service, but I can't figure out how to pass along the
    authentication parameters. I've tried appending
    '&username=myUser&password=myPassword' to the URL and this doesn't appear to
    work (yeah, I know, but you can't blame me for trying).
    Any ideas on how I might do this?
    Thanks,
    Rob

    Looks like a bug. filed CR086448.
    Contact support for patch.
    regards,
    -manoj
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]..
    Hi, Manoj,
    We're using WLS 7.0.0.1.
    Thanks,
    Rob
    "manoj cheenath" <[email protected]> wrote in message
    news:[email protected]..
    The browser should pop up the user name/passwd dialog,
    if the WS is secured. Which version of WLS are you using?
    This could be a bug.
    regards,
    -manoj
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]..
    I've generated a set of web services using a session bean and have
    secured
    my EJB methods. I'd like to enable testing of these methods via theWebLogic
    Web Services Home Page service, but I can't figure out how to pass
    along
    the
    authentication parameters. I've tried appending
    '&username=myUser&password=myPassword' to the URL and this doesn't
    appear
    to
    work (yeah, I know, but you can't blame me for trying).
    Any ideas on how I might do this?
    Thanks,
    Rob

  • Web services sessions

    Can WebLogic 6.x maintain web services sessions between the client and the
    server?
    I need to implement a set of web services which share some session data.
    SOAP itself does allow for maintaining a session, so it is possible to have
    a SOAP header that will handle the passing of a session ID. Does WebLogic
    provide an API to implement this feature?
    Thanks in advance
    Regards

    We've spent a lot of time thinking about conversations between Web Services
    clients and WebLogic Servers where session data and ids are maintained. I
    don't think we can provide much detail yet on the newsgroups, but it's
    definitely an area that we're very much looking into.
    Currently, you would have to role your own service. If you just wanted to
    maintain a session id between client and server, the easiest (but most
    intrusive) thing to do would be to pass an extra 'id' parameter on every method
    call between client and server.
    -- Rob
    David Solis wrote:
    Almost all of the sample code for Web Services that we are seeing today is
    simple stateless method calls like "requesting a key or password",
    "validations", "calculations", etc.
    Has anybody experimented into the next logical step of a Stateful Web
    Service i.e a set of interaction request/responses for example a teller bank
    application or a shopping cart like example. Something on the lines of a
    Stateful Session Bean in EJB.
    It would be useful to all followers of this forum if either WebLogic
    Engineers or developers of web services throw some light on their
    experiences, suggestions.
    Regards
    "Rob Woollen" <rob@trebor_nelloow.moc> wrote in message
    news:3BFE9675.EE4AB56@trebor_nelloow.moc...
    WLS 6.1 does not currently provide a means to automatically propogate asession
    ID in the SOAP header. I'd be interested in hearing more about what youwould
    want for this feature. It's something that we are working on for a future
    release.
    -- Rob
    David Solis wrote:
    Can WebLogic 6.x maintain web services sessions between the client and
    the
    server?
    I need to implement a set of web services which share some session data.
    SOAP itself does allow for maintaining a session, so it is possible tohave
    a SOAP header that will handle the passing of a session ID. DoesWebLogic
    provide an API to implement this feature?
    Thanks in advance
    Regards
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Calling One Jax RPC Web Service from another in Oracle AS 10.1.3

    We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
    I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
    So for example, if Web Service A needs to invoke an operation X in web service B,
    One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
    Is this is the best way to do it ?
    Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
    Any pointers will be greatly appreciated.
    Thanks
    RR

    Found document of 10.1.3.1.0 how to Creating a Custom Identity Service Plug-in
    Oracle® BPEL Process Manager Administrator's Guide
    10g (10.1.3.1.0)
    Part Number B28982-03
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/plugin.htm
    But may be no help.

  • WEB Service Session - Login

    Hello Experts,
    I have to consume a BOBJ Web Service Session in SAP Netweawer.
    Hello,
    We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.
    I've created an proxy object on the SAP Netweaver side in the following way :
    se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl
    Then I've created an Port using soamanager.
    I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.
    Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).
    I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.
    Could You help me ?
    Greetings
    Wojciech
    Here my coding :
    REPORT  ztest.
    DATA text TYPE string.
    DATA : lr_proxy TYPE REF TO zsco_session_port.  " its my session proxy object
    DATA : oref   TYPE REF TO cx_root.
    TRY.
        CREATE OBJECT lr_proxy
          EXPORTING
            logical_port_name = 'LP1'.
      CATCH cx_ai_system_fault INTO oref.
        text = oref->get_text( ).
    ENDTRY.
    DATA get_server_info_in TYPE zsget_server_info_soap_in.
    DATA get_server_info_out TYPE zsget_server_info_soap_out.
    THIS IS WORKING WELL
    TRY.
        CALL METHOD lr_proxy->get_server_info
          EXPORTING
            input  = get_server_info_in
          IMPORTING
            output = get_server_info_out.
      CATCH cx_ai_system_fault  INTO oref..
      CATCH zscx_dswsexception  INTO oref..
      CATCH cx_ai_application_fault  INTO oref..
    ENDTRY.
    break-point.
    AND THIS IS ENDINNG WITH EXCEPTION
    TRY.
        CALL METHOD lr_proxy->login
          EXPORTING
            input  = login_in
          IMPORTING
            output = login_out.
      CATCH cx_ai_system_fault INTO oref.
        text = oref->get_text( ).
    _ CATCH zscx_dswsexception INTO oref.   this exeption is being called_
        text = oref->get_text( ).
      CATCH cx_ai_application_fault INTO oref.
        text = oref->get_text( ).
    ENDTRY.

    Hello,
    I struggle with exactly the same problem accessing the login webservice of the BOE server. Unfortunately the previous answer did not help me since I don't understand it
    Anyone able to enlighten me?
    Edit: Nevermind, I just found out by myself.
    Thanks,
    Sebastian
    Edited by: Sebastian Solzbacher on Nov 25, 2011 9:43 AM

  • Cannot attach a WS-Policy to Jax-RPC Web Service

    I am having trouble trying to associate a WS-Security Policy with a BEA Jax-RPC Web Service?
    I am following the following procedure to try to associate a the policy:
    http://edocs.bea.com/wls/docs100/ConsoleHelp/taskhelp/webservices/ConfigureWSPolicyFile.html
    The problem is that when I navigate on the Administration Console to
    Deployments
    => AdapterAdminService (this is the name of my application)
    => com.gateway.admin.wsdl.v10.AdminImpl (this is the name of my Web Service)
    => Configuration
    => WS-Policy
    The Web console displays a stacktrace mentioning an "IndexOutOfBoundsException" :
    Error opening /jsp/webservice/WebServiceConfigurationWebServicePoliciesForm.jsp.
    The source of this error is java.lang.IllegalArgumentException: The property you provided 'contents' of form 'deploymentPlanForm' must not be set to null. at com.bea.console.taglib.html.TableTag.registerDataSet(TableTag.java:1588) at com.bea.console.taglib.html.TreeTableTag.doRegisterDataSet(TreeTableTag.java:49) at com.bea.console.taglib.html.TableTag.doStartTag(TableTag.java:1360) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag9(__webserviceconfigurationwebservicepoliciesform.java:498) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag8(__webserviceconfigurationwebservicepoliciesform.java:459) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag7(__webserviceconfigurationwebservicepoliciesform.java:416) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jspService(__webserviceconfigurationwebservicepoliciesform.java:265) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454) at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551) at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306) at com.bea.netuix.nf.UIControl.render(UIControl.java:578) at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62) at jsp_servlet._framework._skeletons._default.__gridlayout._jspService(__gridlayout.java:285) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454) at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123) at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72) at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at
    I have this issue with both IE7 and Firefox 2. My domain is a WLS 10.0MP1 domain and is deployed on my Windows XP laptop.
    I am generating the WS from WSDL with the following ant command:
              <wsdlc srcWsdl="${wsdl.location.path}/AdapterAdministration.wsdl"
                   destJwsDir="${gen.compiled.wsdl.dir}"
                   packagename="com.gateway.admin.wsdl.v10.server"
                   destImplDir="server_impl_example" />
    then
                   <jwsc     srcdir="${src.dir}" destdir="${dist.dir}" classpathref="project.class.path" debug="true">
                             <jws file="com/gateway/admin/wsdl/v10/AdminImpl.java"
                                  compiledWsdl="${gen.compiled.wsdl.dir}/AdapterAdministration_wsdl.jar" />
                        </jwsc>
    and finally, I deploy it with:
              <wldeploy action="deploy"
                   name="AdapterAdminService"
                   source="${dist.dir}/AdminImpl.war"
                   user="${wls.domain.user}"
                   password="${wls.domain.pwd}"
                   verbose="true"
                   stage="no"
                   upload="true"
                   adminurl="t3://${wls.domain.host}:${wls.domain.port}"
                   targets="${wls.domain.servername}" />
    Do you have any idea what might be wrong here?
    Thanks in advance,
    Svend

    Hi all,
    Some more information: I have created another very simple Jax-RPC Web Service, now using the @Policy annotation. The policy I specify is then correctly taken into account, but I still have the same symptom when I navigate to the Configuration => WS-Policy page on the Web Console (i.e., I cannot associate a WS-Policy to my WS with the Web Console)
    Beginning of the JWS file:
    @WebService(...)
    @WLHttpTransport(serviceUri = "", portName = "AdapterAdmin")
    @Binding(Binding.Type.SOAP12)
    @Policy(uri="Wssp1.2-Http-UsernameToken-Digest.xml")
    public class AdminImpl implements Admin {
    Ant task I use to build and deploy the service:
    <target name="build-service" depends="prepare">
              <mkdir dir="package"/>
              <mkdir dir="package/WEB-INF"/>
              <mkdir dir="package/WEB-INF/lib"/>
              <jwsc     
                   srcdir="${src.dir}"
                   destdir="package"
                   classpathref="project.class.path"
                   debug="true">
                   <jws
                        file="com/gateway/admin/wsdl/v10/AdminImpl.java"
                        contextpath="/AdminImpl2"
                        explode="true"
                   />
              </jwsc>
              <move todir="package/WEB-INF">
                   <fileset dir="package/com/gateway/admin/wsdl/v10/AdminImpl/WEB-INF"></fileset>
              </move>
              <move todir="package/META-INF">
                   <fileset dir="package/xsize/gateway/admin/wsdl/v10/AdminImpl/META-INF"></fileset>
              </move>
              <copy todir="package/WEB-INF/lib">
                   <fileset dir="${lib.dir}"
                                  includes="client-1.0.jar,
                                       tools.jar />
              </copy>
              <delete dir="package/com" />
              <jar destfile="${dist.dir}/simpleWS2.war" >
                   <fileset dir="package" />
              </jar>     
              <wldeploy action="deploy"
                   name="AdminService-withPolicyAnnotation"
                   source="${dist.dir}/simpleWS2.war"
                   user="weblogic"
                   password="weblogic"
                   verbose="true"
                   stage="no"
                   upload="true"
                   adminurl="t3://localhost:9001"
                   targets="AdminServer" />
         </target>
    "

  • Web Service session manager not found.

    I'm trying to understand how to use the HTTP utilities, and I'm having trouble just creating a session.  I get a Web Service session manager not found error.  I've read where the client has to support cookies.  My eventual client will be a labview VI that talks to a web server.  I llooked at the Toolsptions, but don't see anything related to cookies.  Not sure if that's what's causing this anyway, but I'm just digging.  Also, I want to eventually send http messages across TCP/IP.  Do I need to use the TCP/IP VIs (i.e. open connection, etc) or do I use the http utilities alone.  If both are needed, how does the httpRequestID and the TCP/IP connection ID correlate.
    Attachments:
    htttGetSession.vi ‏9 KB
    WebServerError.PNG ‏13 KB

    Hi can you please let me know how you resolved this issue?

  • BOBJ WEB Service Session - Login

    Hello Experts,
    I have to consume a BOBJ Web Service Session in SAP Netweawer.
    Hello,
    We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.
    I've created an proxy object on the SAP Netweaver side in the following way :
    se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl
    Then I've created an Port using soamanager.
    I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.
    Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).
    I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.
    Could You help me ?
    Greetings
    Wojciech
    Here my coding :
    REPORT ztest.
    DATA text TYPE string.
    DATA : lr_proxy TYPE REF TO zsco_session_port. " its my session proxy object
    DATA : oref TYPE REF TO cx_root.
    TRY.
    CREATE OBJECT lr_proxy
    EXPORTING
    logical_port_name = 'LP1'.
    CATCH cx_ai_system_fault INTO oref.
    text = oref->get_text( ).
    ENDTRY.
    DATA get_server_info_in TYPE zsget_server_info_soap_in.
    DATA get_server_info_out TYPE zsget_server_info_soap_out.
    THIS IS WORKING WELL
    TRY.
    CALL METHOD lr_proxy->get_server_info
    EXPORTING
    input = get_server_info_in
    IMPORTING
    output = get_server_info_out.
    CATCH cx_ai_system_fault INTO oref..
    CATCH zscx_dswsexception INTO oref..
    CATCH cx_ai_application_fault INTO oref..
    ENDTRY.
    break-point.
    AND THIS IS ENDINNG WITH EXCEPTION
    TRY.
    CALL METHOD lr_proxy->login
    EXPORTING
    input = login_in
    IMPORTING
    output = login_out.
    CATCH cx_ai_system_fault INTO oref.
    text = oref->get_text( ).
    _ CATCH zscx_dswsexception INTO oref. this exeption is being called_
    text = oref->get_text( ).
    CATCH cx_ai_application_fault INTO oref.
    text = oref->get_text( ).
    ENDTRY.

    Hello,
    I struggle with exactly the same problem accessing the login webservice of the BOE server. Unfortunately the previous answer did not help me since I don't understand it
    Anyone able to enlighten me?
    Edit: Nevermind, I just found out by myself.
    Thanks,
    Sebastian
    Edited by: Sebastian Solzbacher on Nov 25, 2011 9:43 AM

Maybe you are looking for