Using ADS service in EJB application (without WebDynpro)

Hi experts!
Tell me, please, is there some way to use ADS outside WebDynpro Java application ?
I need to create EJB function, which returns rendered PDF document based on XDP template using ADS, configured in NW 7.2 java server.
I found an api to operate ADS in java in package com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api, but its api included in tc/wd/api development component and not available in other apps except WDJ.
Thanks for reply.

Hi,
Here is the code I use to create a task. I hope it could help you or help other users trying to do the same thing.
IUWLService uwlService = (IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);     
UWLContext uwlContext = new UWLContext();
IProviderConnector pc = uwlService.getRegisterProviderConnector(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID);
Item item1 = new Item(
     IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID,
     "system",
     "id1",
     uwlContext.getUserId(),
     -1,
     new java.util.Date(),
     "lkjh",
     null,
     "request1",
     "uwl.task",
     "uwl.task",
     PriorityEnum.NORMAL,
     StatusEnum.NEW,
     "Super Test"
item1.setShared();
Set users=new HashSet();
IUserContext userContext = ((IPortalComponentRequest)getRequest()).getUser();
users.add(userContext.getUniqueID());
IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
uwlService.getPushChannel().pushSharedItem(pc,item1,users);
Regards,
Renaud

Similar Messages

  • Consume Web Service in EJB Application

    Hi Experts,
    I have EJB Application with some Java Classes.My Requirement is to Consume Web Service in EJB Application.
    I am new to EJB Application.Please share if have any ideas regarding the same.
    Thanks & Regards,
    SatheshKumar R

    Hi Vijay,
    Thanks for the Reply.
    Please provide the JAR Files i need to add.
    I had tried to consume the web service by using the java class in Java Project ie EJB.
    After creating the Project i will import the WSDL file in that Project and create the Client Application.
    The Request and Response java class is created by importing the WSDL file.
    The Client Java Class is created to access the Request and Response objects.
    After this Main class is created and I have run the application to execute the Client Java Class. During this time its shows some error.
    The Error Message are:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/engine/interfaces/sca/logtrace/CallEntry$TraceLevel
    at com.sap.engine.services.webservices.espbase.client.bindings.ConfigurationUtil.getTransportBinding(ConfigurationUtil.java:249)
    at com.sap.engine.services.webservices.espbase.client.bindings.ConfigurationUtil.createClientConfiguration(ConfigurationUtil.java:109)
    at com.sap.engine.services.webservices.espbase.client.jaxws.metadata.InterfaceMetadata.createClientConfigurationContext(InterfaceMetadata.java:178)
    at com.sap.engine.services.webservices.espbase.client.jaxws.metadata.InterfaceMetadata.getProxy(InterfaceMetadata.java:70)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.SAPServiceDelegate.getPort(SAPServiceDelegate.java:258)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at com.sap.tutorial.testwebser1ejb.TestAddService.getTestAddPort(TestAddService.java:38)
    at com.sap.tutorial.testwebser1ejb.TestAddClient.testAdd(TestAddClient.java:12)
    at com.sap.tutorial.testwebser1ejb.MainClass.main(MainClass.java:12)
    Caused by: java.lang.ClassNotFoundException: com.sap.engine.interfaces.sca.logtrace.CallEntry$TraceLevel
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 9 more
    Thanks & Regards,
    SatheshKumar R

  • Calling an EJB application in webdynpro

    Dear SDN's,
    I am trying to call an EJB application  from a webdynpro application and is succeded in storing values to database via Java Bean Model.
    I want to retrieve all records from table via EJB and all the records should be displayed in Webdynpro Table UI element.
    How can we do it?
    The problem here is, how to return a set of records to webdynpro from EJB via a javabean.
    I am not clear in using Collection Framework! i.e, which collection class i have to use to store the retrieved records.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi Sireesha,
    Instead of adding resultset, create a EMP cinstance and add it.
    Ex : Consider you have created a EMP class
    class EMP
      String empname;
       int id;
      public void setEmpname(String name);
      public String getEmpname();
    Now
    ResultSet rs=statement.executeQuery(select * from emp);
    Vector v=new Vector();
    while(rs.next)
    Emp e=new EMP()l
    e.setEmpName(rs.getString(0));
    e.setID(rs.getInt(1)));
    v.add(emp);
    Iterator i=v.iterator();
    while(i.hasNext())
    Emp e1=(EMP)i.next()l
    System.out.println(e1.getempName());
    System.out.println(e1.getID);
    Regards, ANilkumar

  • Using T3 Services from EJB's

    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

    You have classpath problems. Please post the classpath and the weblogic
    classpath that you are using to start the server. In particular, make
    sure that your ejb-jar is not found in either of these.
    -- Rob
    Sohit wadhwa wrote:
    >
    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

  • How to use Berkeley DB in an application without installing

    I'm using Berkeley DB in a python project, and I am wondering if I can make the libraries available to python without specifically installing berkeley DB.
    How can you embed Berkeley DB in an application generally?
    Has anyone done this with python and bsddb3?
    Thank you
    Sachi.

    The python BDB libraries are maintained independently of Oracle.  You will probably have more success asking this question on the BDB python mailing list at https://mailman.jcea.es/listinfo/pybsddb
    Lauren Foutz

  • Is there a way to use location services while in Europe without incurring roaming charges?

    I am traveling in Europe and I want to use a mapping program that requires location services.  Is there any way to do this without incurring roaming charges?

    Disclaimer - For me the Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture very different from that found in most 1st world nations, such as that in the two dominant North American countries. Written language has no tone. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Turn off the cellular function and only use wifi.

  • Error When using web services on Oracle Application

    we are getting this error when we deployed code on Oracle Application, but same code working fine on Jdev.
    Exception java.rmi.RemoteException: ; nested exception is:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: For input string: ""
    [546]:ERROR:[fnd.common.Message.auto_log]:FNDICX_JAVASCRIPT_DISCLAIMER
    Regards,
    Vivek Gautam

    Are you sure that you have posted your question to the correct forum? This forum is only for Oracle Enterprise Manager related issues.

  • ADS service (XMLForm.exe) Utilizes 30 to 40 % of Java Stack CPU

    We are currently on ECC 6 and EP 7.0; we have started using ADS service (Generating buld PDF forms) and we are noticing that it utilizes upto 30% of CPU on the Java stack.
    One thing to inform is that we are using the same Java Stack for Portal, BI and R/3.
    30% of CPU seems abnormal to me (At the peak of its usage the Portal Performance goes down).
    Will this issue get solved if we use a dedicated Java Stack for R/3? Your Thoughts Please.
    Regards,
    Deepak

    SAP recommends very accurate (I better say pessimistic) sizing for server running productive ADS.
    The best approach is to use standalone server for productive ADS usage.
    IMHO, in that case you still can use the same ADS for productive, quality and even development usage.
    Regards,
    Petr Perstnev

  • Error while loading members using ads file in EPMA planning app in 11.1.2.2

    Hi,
    I am trying to update the dimension using ads file in EPMA application(11.1.2.2).
    1. I am getting following error:
    "The member 'xxx' cannot be created or inserted into the shared dimension 'yyy' within the application 'abc' during application import as this is not allowed by the system. Property updates for this member will not be processed."
    2. Also, I am trying to create shared dimension using ads file. I am replacing Isprimary property to 'N' and Datastore property to 'ShareData' in the ads file. There is no error while doing it and the status is 100% complete but I could not see any changes in the hierarchy.
    Any help would be great in this.
    Thanks

    I found the log file, if you can help clarify the reason for this issue:
    [Dec 7, 2012 10:18:58 AM]: Application (HCCPEXP) Upgrade initiated by user admin...
    [Dec 7, 2012 10:18:58 AM]: *******************************
    [Dec 7, 2012 10:18:58 AM]: 11.1.2.1 to 11.1.2.2
    [Dec 7, 2012 10:18:58 AM]: *******************************
    [Dec 7, 2012 10:18:59 AM]: Execute SQLs-E:\Oracle\Middleware\EPMSystem11R1\products\Planning\config\sql\11_1_2_2Migration_SQLServer_Unicode.sql
    [Dec 7, 2012 10:19:00 AM]: [FMWGEN][SQLServer JDBC Driver][SQLServer]The object 'DF__HSP_SYSTE__ESS_D__42ACE4D4' is dependent on column 'ESS_DEF_PSWD'.
    thanks...

  • Calling Web Service from EJB using HTTP Client

    Hi,
    Scenario:
    I need to Call a Web Service from an EJB Application.I used HttpClient for calling the Web Service in the EJB Application. When i call the execute method of the HttpCLient it throws an exception
    The element type "META" must be terminated by the matching end-tag "</META>"
    The input XML does not have a node called META.
    When i call the Web Service using Http Client form an Java Application it is working fine.
    Kindly Suggest me the changes/steps that needs to be done
    Regards,
    S.V.Satish Kumar

    Hi Manish,
    SOAP adapter does pass the message to XI (this message contains SOAP envelope although XI expects to get message without it), and during the mapping step i get "Runtime Exception in Message-Mapping transformatio~".
    I suppose it's because i created proxy manually. I did so because when i imported WSDL, and tried to generate proxy in CRM, i got an error message that said that proxy couldn't be generated because external definitions are only allowed in XI 3. But my XI version is 3.0! And when I generate the same proxy in my R/3 system that is installed on WAS 640, it works.
    What can I do?
    Cheers,
    Anya.

  • What is the best way to deploy application that uses web services?

    Hi all,
    I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
    Here's a little background:
    We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
    We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
    We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
    Thanks!
    Edited by: doubleEspresso on Jan 10, 2008 8:06 AM

    >
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
    There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
    >
    ..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
    <http://forum.java.sun.com/category.jspa?categoryID=20>
    Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
    <http://forum.java.sun.com/forum.jspa?forumID=331>
    This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
    <http://forum.java.sun.com/forum.jspa?forumID=550>

  • Use of Services without SR and ESR

    Hello, for this one I need to explain something:
    I'm writing my diploma about ESOA. Because of this I allready have created a application which uses Enterprise Services. But because I used the ESWorkplace I've had some restrictions.
    - If I used the SR of the ESWorkplace together with a in my CE generated Destination I could not use the Services because the SR gave me the SAP internal URL to the service(iwdf...) which I could not reach. I solved this problem the following way:
    - Get the Service-WSDL-Url from the ESWorkplace
    - Create a WSDL Destination in the CE with the WSDL-URL from above and the System-Data of HU2
    - Use this Destination in WD Java for an adaptive Web Service Model and again the WSDL-URL
    With these steps I was able to use the Services. But I had to create a destination for every single Webservice. It's ok, it worked and this was everything I wanted. But as a result of this I haven't used the ESR and the SR at all. Because all i needed was the WSDL-Url of the service and the system data of the corresponding System.
    Now the question comes up: In case of a ERP System with installed Enhancement Packs without an SR or ESR: Would I be able to use the Services in the same way? I mean: in /wsadmin on HU2 I'm able to get the wsdl-Url. But could this information also be found there without a SR or ESR?
    I have tried to use the services of a CRM 2007 System (which has preinstalled services as CustomerQuoteByID) we physically have here in our company. But I simply don't get the needed WSDL-URL. In fact the Service can't be found in /wsadmin. Is this because of the missing SR and ESR? Or am I doing something wrong?
    I really don't get the neccessarity of the SR and ESR at all. Ok, I know what I can do with them. Modelling Services with the ESR or using them if I don't have a supplier. And Browsing available Services in the SR. But if a customer has no CE or PI and because of this no SR and ESR: Would there be a way for using his services. Don't get me wrong: I know how to use bapis and rfcs, and I also know the the ES only use the BAPIs with an additional Interface with some extra functionality like failure and exception handling. But how to use these ES without the ESR and SR?
    I hope you understand my question. I would be very happy about an reply!
    Geetings, Marco

    Hello!
    I'm trying to use a ResourceBundle to store properties
    that arn't locale-specific - its a sort of
    look-and-feel type arrangement. The way more specific
    ResourceBundles inherit properties from more general
    ones would be really useful, but since its not a
    locale that's used to pick a particular bundle I'm
    having trouble working out how I can use it for this
    purpose.
    Has anybody used ResourceBundles for non-locale
    specific uses before, or does anyone know of anything
    else that might be more appropriate?
    Thanks loads for any help!!
    NicolaYes, you make up your own Locales with anything you want in place of the language, country, and variant. As long as you're not setting the Locale, it works great!
    ResourceBundle laf = new ResourceBundle.getBundle("skins.properties", new Locale("flavor", "chocolate",""));will get all resources in skins.properties and over-riding entries from skins_flavor_chocolate.properties".

  • Q: General : When will you use Web Service as opposed to just Servlet and/or EJB?

    Hi,
    I don't know if this is an appropriate question to ask for this class as it's not
    workshop
    specific. I was wondering how will I decide when it is appropriate to use a web
    service as opposed to say servlet or an EJB for my application? What is a good
    rationale to use?
    Thanks,
    Sadhana

    Hi Adam,
    Thanks a lot for giving such a lucid explanation of my vague question!
    I understand now the difference between when to use EJBs/Servlets/Web Services.
    Thanks again!
    Sadhana
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Hi Sadhana,
    Web service versus Servlet versus EJB. Which one to use? That is a very
    good question.
    EJBs should be the core desription and processing of your business rules.
    They generally
    have good performance, are easy to integrate into your security set up but
    they require
    access using the RMI-IIOP protocol. This means that generally EJBs are not
    accessible
    outside of your firewall and their clients have to be written in Java (other
    enterprise
    objects or applets or GUI applications).
    Servlets often form a web-based front end to EJBs. They also have good performance,
    integrate into security and only require HTTP access. This means they are
    accessible
    outside your firewall and any client with a HTTP or web API can call on
    them, however,
    there is no standard contract or rules for this type of interaction so you
    will need
    provide direct input into development of the client.
    Web services are also accessible via HTTP and so can be accessed from outside
    your
    firewall. In fact, Web services internally within Workshop and WebLogic
    actually
    operate by using servlets and EJBs but the main advantage is that the mechanism/contract
    for interacting with the web service is a well defined standard (WSDL) and
    can actually
    be registered or retreived dynamically (UDDI). Since web service standards
    are open,
    most popular programming languages already provide client APIs to interact
    with them
    thus freeing the web service developer from direct interaction with the
    client developer
    and letting the client be developed on any platform. The penalty for this
    openness
    is a small performance hit (XML translation) and a slowly maturing security
    model.
    So in summary, use EJBs for business operations that have Java clients within
    your
    enterprise, use servlets to provide web style access to your business operations
    (like web pages) and use web services to enable automated clients that can
    be written
    on any platform either inside or outside your enterprise (firewall). In
    fact, it
    is common to write the EJB first and then to expose some parts of it outside
    of your
    enterprise by writing a web service wrapper (maybe using the EJB controls
    that we
    saw in class).
    I hope this helps.
    Adam
    "Sadhana Jain" <[email protected]> wrote:
    Hi,
    I don't know if this is an appropriate question to ask for this class as
    it's not
    workshop
    specific. I was wondering how will I decide when it is appropriate to use
    a web
    service as opposed to say servlet or an EJB for my application? What is
    a good
    rationale to use?
    Thanks,
    Sadhana

  • Deploy WebDynpro application without SDM password

    Is it possbile to deploy WebDynpro application without SDM password? I have account with SAP_J2EE_ADMIN role.

    hai,
    go to server path
    open the dos editor
    go to this dir
    usr/sap/j2e/jcXX/sdm/program
    x:usr/sap/j2e/jcXX/sdm/program\>
    StopServer
    sdm jstartup "mode=standalone" "sdmhome=."
    sdm deploy "sdmhome=." "file=xxx.ear" "onerror=stop"
    sdm jstartup "mode=integrated" "sdmhome=."
    StartServer
    use the above commands one by one
    regards,
    Naga Raju

  • HT4995 Internationally using Location Services without having data charges.  What settings should use on my iPhone 5?

    I'm traveling to Europe and I want to use Location Services without having data charges.  What settings should use on my iPhone 5?  I want to be able to use Trip Advisor City Guides Application to tour around cities for free.  I have a Verizon International Plan for my trip, but it is still pricey.  I would like to keep my iPhone cell services on for incoming calls, but I want to prevent international data charges.  Thanks for your help!

    You don't "choose" to use th 3g network.
    If you have paid for it in your plan and 3g coverage is available, your phone will automatically use it when necessary.
    3g provides faster internet speeds than 2g, so you can watch video or download stuff faster. Wifi is normally faster than 3g.
    Your iphone gps is "assisted", meaning it uses network data to calculate your position.
    Also, you would still need the network to download maps, directions etc as they are not on your device.

Maybe you are looking for

  • HP Photosmart 8750 prints slow when using Photo Gray Cartidge

    HP Photosmart 8750 prints slow when using Photo Gray Cartidge ... sometimes indicates Black Cartridge failed, however upon reinserting works slow

  • Error -- Oracle.xdo.XDOException: oracle.xdo.XDOException

    Hi all, When I create a data model using Oracle BI analysis, it turn this error: Oracle.xdo.XDOException: oracle.xdo.XDOException: oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'saw:text'. And how can i make it, thank you i

  • Ibooks syncing issue ipad 2

    Every time I link my Macbook Pro to my ipad 2 to sync I have to re check the 'load all books' box.  Is this a new books not syncing issue? Or something else? How do I keep the load all box checked so I can not keep assessing my memory wrongly?

  • How can I search through a scanned document?

    I often have hundreds of pages to read through for my job and I get the files in paper format and in PDF scans.  Is there an adobe program that will allow me to search a scanned document for a key word or name?  It would save me so much time.

  • Script for batch processing

    Hello I need help I created a batch sequence which set watermark and security to pdf files from one directory. Now i want to create another sequence: 1. set security to none and 2. delete watermark. I have a problem with set security to none because