Urgent : Passing List or Hashmap to webservices

Hai
I need to pass the Hashmap and List as parameter to an EJB which is published as an webservice.
I tried with passing string as an parameter and succeed with it, but i don't know how to pass the List as an parameter.
Can any one help me to resolve this.
Thanks
T.Gopalakrishnan

Hai I am using SAAJ api to create SOAP message and i need to add java.util.List as an parameter to it.
I am using weblogic 7 and glue

Similar Messages

  • Passing list of values as a parameter to repot through form

    hi,
    i am trying to passing parameters to report through form by
    using ADD_PARAMETER_LIST and RUN_PRODUCT .but i am not able to
    pass list of values to report.For example if use select state_id
    from the list box,it has to give all details of that state
    report.how to do this?
    please help me.
    thanks in adv
    rao
    null

    rao (guest) wrote:
    : hi,
    : i am trying to passing parameters to report through form by
    : using ADD_PARAMETER_LIST and RUN_PRODUCT .but i am not able
    to
    : pass list of values to report.For example if use select
    state_id
    : from the list box,it has to give all details of that state
    : report.how to do this?
    : please help me.
    : thanks in adv
    : rao
    there are at least two path to do that:
    1. for each detail item mak a parameter in reports and add it to
    paramlist
    2. pass only stade_id as parameter and in reports query other
    details
    hope this helps
    null

  • Passing table from ABAP to webservice using SOAP

    Hello:
    I am trying to pass table data from ABAP code to a webservice using SOAP.  I have seen many examples of passing single value parameters such as:
      DATA: osoap   TYPE REF TO CSoapDocument.
        GET REFERENCE OF p_refno INTO dref.
        CALL METHOD osoap->add_parameter
          EXPORTING
            direction  = CSoapConstants=>ic_param_in
            name       = 'ws_ref_no'
            value      = dref.
        CALL METHOD osoap->set_tag_name_format
          EXPORTING format = CSoapConstants=>ic_tagfmt_default.
    However I cannot find any code examples of passing table data to a webservice.  Can anyone provide a sample or documentation for how to pass table data to a webservice?
    Thanks,
    Craig

    Hi Craig
    i just posted this on SAPfans for you too!
    if you are not using PI, then follow this....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
    this is converting XSD to ABAP....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/de/705c3c3806af06e10000000a11402f/frameset.htm
    i have only used PI to do this via ABAP Proxies....

  • Pass prompt values in a Webservice

    Hi there, my requirement is to get 'Input Values' from a Combo Box(Dropdown) and pass those values into the webservice and get the output.
    Here are the steps so far:
    1) Created a WebI Report(using WebI Rich Client). The report has a prompt called 'State'
    2) Published the report block as a web-service and copied the WSDL URL.
    3) Created a Combo-box(Dropdown) in Xcelsius and put 'State' values to output to a cell 'A1'
    4) Created a web-service connection in Xcelsius Data Manager, and used my WSDL URL. I am able to see that it has detected a prompt in my webservice in the Inputs area. There are two methods called:
    valueofPrompt
      and
      Index
    I am mapping the 'ValueofPrompt' to the same cell as the Combo-box output cell 'A1'
    5) Clicked preview and when i picked any state say 'Alabama' and hit refresh, i see that i get values for all states, not just Alabama. So looks like my dropdown value is not being passed to the webservice.
    Am i missing something? Any ideas where it might go wrong?
    Thanks,
    Kon

    Are you sure that the webi report is refreshing AND you're refreshing the connection? Try putting FALSE or 0 in the option 'GetLatestInstance' and TRUE in the refresh option.
    Try putting a loading status into a cell in the dashboard and mapping a spreadsheet component to this cell, so you can see what's going on. By seeing how long the connection is taking to load, you might be able to get an idea of whether or not the webi report is being refreshed.
    Lastly, have you considered fetching all states in the Webi report and instead using a filter to pick an individual state. This will be much faster.

  • Most urgent:::: passing parameter list  to reports containing record groups

    hi
    can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
    zulfiqar

    Hi!
    To suppress Oracle Reports native Parameter Form just add:
    add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • URGENT: passing more than one value at the same parameter

    Hello friends at www.oracle.com,
    if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
    For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
    This is quite urgent and I need help on this.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]

    Thanks to Oracle Reports Team for answering! I'm sure this will work.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]
    hello,
    on the forms side, you will have to build the list for this parameter by e.g. string concat.
    on the reports side you will have to "decode" this parameter according to how you built it in forms.
    e.g. if you pass the list like this "10~20~30" you might use a where-clause in the query
    ... where instr(myCol, :myParam) >0
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • Need Urgent Solution for error in presence webservice

    Hi Folks, I am new to ocsg , i got stuck with a serious problem
    I am working with presence web service
    As from documentation , i understood that watcher should subscribe with attrbiutes which he wants to look up for presence user's information , so i tried to give subscribe information, in that tab, i gave sip uri as tel:1234
    and click on start button .Initially i got error that No plug in created
    Then i tried to create the plug in from pluginmanager for presence webservice , but it is not allowing to create saying that "you cannot create plug for this service ( presence web service)"
    then I started using the already existing
    presenceservice = Plugin_px21_presence_sip and existing
    ================
    presence instance = Plugin_px21_presence_sip#wlng_nt_presence_px21#4.1
    then again i got error while I click on start button , saying that No Route Exists
    then I added a route by taking Plugin_px21_presence_sip as input value and values given as tel:^.*
    and I also set setrouteconfig as below values
    ================
    Plugin_px21_presence_sip
    ================
    <?xml version="1.0" encoding="UTF-8"?>
    <route xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="route.xsd">
    <destAddress defaultResult="true">tel:^.*</destAddress>
    </route>
    =================
    it has accepted . then I again started the subscribe presence by clicking on start button .
    14 Jul 2009 11:29:45,421 [ WARN com.bea.wlcp.wlng.util.EJBHelper - Failed to process request
    com.bea.wlcp.wlng.api.plugin.NoRoutePluginException: Could not find a route for this message. address: tel:1234
    at com.bea.wlcp.wlng.interceptor.RemoveInvalidRoute.invoke(RemoveInvalidRoute.java:49)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.CreatePolicyData.invoke(CreatePolicyData.java:25)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.RemoveInactivePlugin.invoke(RemoveInactivePlugin.java:39)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.CreatePluginList.invoke(CreatePluginList.java:59)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.ValidateRequestUsingRequestFactory.invoke(ValidateRequestUsingRequestFactory.java:41)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.EnforceSpAppBudget.invoke(EnforceSpAppBudget.java:70)
    at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
    at com.bea.wlcp.wlng.interceptor.EnforceApplicationState.invoke(EnforceApplicationState.java:71)
    at com.bea.wlcp.wlng.plugin.PluginManagerImpl.invokeInterceptors(PluginManagerImpl.java:84)
    at com.bea.wlcp.wlng.plugin.PluginManagerImpl.processRequest(PluginManagerImpl.java:58)
    at com.bea.wlcp.wlng.util.EJBHelper.processRequest(EJBHelper.java:42)
    at com.bea.wlcp.wlng.px21.ejb.PresenceConsumerEjbImpl.subscribePresence(PresenceConsumerEjbImpl.java:79)
    at com.bea.wlcp.wlng.px21.ejb.PresenceConsumer_y33p2d_EOImpl.subscribePresence(PresenceConsumer_y33p2d_EOImpl.java:138)
    at com.bea.wlcp.wlng.px21.ejb.PresenceConsumer_y33p2d_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at com.bea.wlcp.wlng.px21.ejb.PresenceConsumer_y33p2d_EOImpl_1030_WLStub.subscribePresence(Unknown Source)
    at com.bea.wlcp.wlng.px21.jws.PresenceConsumerWsImpl.subscribePresence(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor376.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
    at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
    at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
    at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
    at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
    at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
    at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
    at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    please guide me if my understanding is correct and my steps are correct or not, if all the above steps are fine, please tell why i am getting that error message
    Really stuck with this problem from 1 week , please help me to move further.
    Regards
    Rajasekhar

    Hi, if this is urgent I would suggest logging the issue on My Oracle Support in the Communications Service Delivery Community where Oracle and customer/partner/developer experts will advise whether this is a configuration issue or a bug that requires an SR to deliver a fix.
    Regards
    Graham

  • Pass list of values to DB adapter from BPEL process

    We want to pass a list of values (length of list and values to be passed will be dynamically determined by the input to this invocation)
    How do we pass the input as a list of values to a db adapter where the list of values will form a part of input query where clause.
    say eg
    select date from tablea where columna in (List1,list2,lsit3) etc
    Thanks

    This will help you
    http://soa-howto.blogspot.com/2009/05/how-to-use-sql-query-having-in-clause.html

  • How to remove "Records passed" list when printing ALV report

    Hi all,
    I have developed an ALV report, in which I have used reuse_alv_list_display functional module to print the output. After pressing print button, when I view the output in spool request transaction, an additional list with Number of records passed and "Calculated total records" is displayed. How to remove this additional list.
    I am using Get_print_paramaters FM to print.
    Thanks,
    rajan

    Hi
    Suppress the messages of the FM by commenting the exceptions and message statement
    Regards
    Shiva

  • Pass list of structure as input parameter to visual composer iview

    Hi
    In my application, I need to create an iview which has a table view. Start point has same structure as table columns. Now I deployed this iview and assign to every user core role. Now i am using in in my GP. It is getting a list of structure as input but it is showing only one row in the table.
    Anyone has idea about this.
    Regards
    Saurabh Garg

    Hi Saurabh,
    How did you do for passing at least one row ?
    Can you explain that ?
    Thanks a lot
    btw, Did you succeed to pass several rows ?

  • Pass List MyObject as a parameter with jax ws web service

    Hi,
    I need to pass a list of strongly typed object as a parameter in my web service which utilizes jax ws.
    For some reason I am not able to pass more than one.
    For example if do the following in my soap message:
    <Objects>
       <Object>
            <property>myVal</property>
       </Object>
    <Object>
            <property>myVal</property>
       </Object>
    </Objects>The above will be treated as one object in my java code.
    Edited by: kminev on Dec 15, 2009 11:55 AM

    WIS is not suppported on WLS JAX-WS. You'll need to use other authentication mechanisms such as http basic (which you tried already), or message-level security such as UNT, or SAML.
    Regards,
    Pyounguk

  • SQL Query: How to pass list of values to the IN operator

    Hi,
    I'm trying to pass a list of values to the WHERE <a> IN <list>
    I dont want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL?
    Please let me know.
    My program:
    DECLARE
    list_of_ids := '10, 20, 30';
    SELECT MAX(sal) INTO max_sal FROM employee WHERE emp_id IN (list_of_ids);
    END;
    Thanks in Advance,
    Niko

    You do not want to pass a comma separated list. You want to pass a collection. So
    CREATE TYPE num_tbl
    AS
    TABLE OF NUMBER;
    DECLARE
      l_list_of_ids num_tbl := num_tbl( 10, 20, 30 );
    BEGIN
      SELECT max(sal)
        INTO max_sal
        FROM employee
       WHERE emp_id IN (SELECT * FROM TABLE( l_list_of_ids ));
    END;
    /Justin

  • How can one prevent passing exceptions over an EJB-Webservice?

    Hello,
    I would appreciate if someone could give me some advice on the following. I tried to google it/use the search function, however, it was quite hard finding a precise search term.
    Let me try to explain the setting conceptionally without much code first.
    Three stateless session beans - let's call them BeanA, BeanB and BeanC - perform some specific tasks. Especially, they are using JPA to create and manipulate persistent entities. Clients like graphical user interfaces access these beans. I call them internal clients because they belong the same company like BeanA, BeanB and BeanC. Internal clients can know how to handle exceptions which are thrown in the beans.
    However, the functionality of these beans is also relevant to external clients, for example another company. A webservice (WebserviceBean) combines the functionality of the three beans and communicates with the external client. The latter one must not receive any exceptions thrown in my EJB application as this could leak implementation details but they must be informed, that the task could not be performed (some kind of "Please try again later"). As far as I understood (also tested it), JAX-WS takes exceptions and turns them into SOAP-Faults.
    My first (naive) approach was to do something like this
    Webmethod of the WebserviceBean (
    public ReturnType doWebserviceFunctionality(ParameterType parameter) {
       try {
          beanAinstance.doWork();
          beanBinstance.doMoreWork();
          beanCinstance.doFinalWork();
       catch(SpecificException se) {
       // Map specific exception to ReturnType.specificError
       } catch(Exception e) {  // Bad practice, I know
       // Map general exception to ReturnType.encounteredInternalError
    }In every bean's method as well as in the webservice, I am using Container Managed Transactions (default setting REQUIRED).
    The problem is, that doMoreWork() uses an entity with a versioning attribute (@version) in order to support optimistic locking. This works quite well, however, whenever an OptimisticLockException is thrown, it does not get caught in WebserviceBean and is passed on to the client. I think this is because the complete transaction is commited at the end of doWebserviceFunctionality. I am aware that I could use EntityManager's flush method in bean B in order to catch the OptimisticLockException. However, I am trying not to interfere with transaction commiting as far as possible and furthermore, I am not quite sure, if there could be other exceptions (for example JPA exceptions) which could get thrown in a similar way and are passed on to the client.
    Does anybody know a possibility to solve this problem? Do I have to use bean managed transactions? Or mark doWebserviceFunctionality as not part of an transaction and put the bean method calls in a seperate method which commits at the end and allows me to handle exceptions? Or is there a completely different approach necessary?
    Any help is appreciated, thanks in advance,
    BKelso

    Hello to all,
    thanks again for your suggestions which proved to be valueable hints!
    I'll tell you so far the lessons I've learned.
    1) Using interceptors (suggested by malrawi)
    This would have been a very nice solution, however, it turns out that the problem remains - the exception thrown by the container after the commit is not caught. Here is the code I used
        @AroundInvoke
        public Object convertException(InvocationContext ctx) throws InternalErrorException {
          try {
             return ctx.proceed();
          } catch(Exception e) {
             // just tried to throw another exception here in order to see if it works
             throw new InternalErrorException("Internal Error occured. Please try again later.");
        }2) Using bean managed transcations (suggested by zsom)
    This worked out as I thought it would. The webservice starts and commits the transactions, beanA, B and C can still keep the default CMT Attribute. However, when ut.rollback() is called, an IllegalStateException is always thrown. Don't know why so far, the transaction seems to be set back anyways.
    @Resource SessionContext ctx;
    public ReturnType doWebserviceFunctionality(ParameterType parameter) {
    UserTransaction ut = null;
          ut = ctx.getUserTransaction();
          try {
             ut.begin();
             ut.commit();
         } catch (Exception e) {
             try {
                ut.rollback();
                // map exception...
             } catch (Exception rollbackException) {
                // also map exception to return type
    }3) Upon the suggestion by malrawi using NotSupported transaction attribute in order to force a commit, I came up with the following: The webservice method uses this transaction attribute while simply calling another local stateless session bean (beanZ), which does the actual work (calling beans A, B, C). It uses the default transaction attribute (Required). This works out perfectly at the cost of an additional bean. But maybe you see some other downsides? Essentially it's the same as the idea with the internalMethod made public and using another transaction attribute.
    // web service class
    public ReturnType doWebserviceFunctionality(ParameterType parameter) {
       try {
            beanZinstance.doActualWork();
       catch(Exception e) {  // Map exceptions here
    // bean Z class
    public ReturnType doActualWork(ParameterType parameter) {
           beanAinstance.doWork();
          beanBinstance.doMoreWork();
          beanCinstance.doFinalWork();
    }4) Using soaphandler (suggested by zsom)
    This seems like a good idea but it is also the most complicated and a bit more low-level. But I will check it out in more detail, I think.
    Thanks again for your efforts and I still appreciate any feedback!
    BobKelso

  • Axis: passing arrays as parameters to webservices

    Hi,
    I'm using axis to setup a webservice.
    In my client application, I need to pass an array of bytes to the webservice.
    How would I set this up when creating my call?
    Here is how I setup my calls:
    call.removeAllParameters();
    call.setOperationName("methodName");
    call.addParameter("paramName1", XMLType.XSD_?, ParameterMode.IN);
    call.setReturnType( XMLType.XSD_BOOLEAN );
    Boolean ret = (Boolean) call.invoke(new Object[]{ bytes });
    where 'bytes' is the array of bytes.
    The question marks are where I don't know what to do.
    Can anyone help me?

    Try XMLType.SOAP_ARRAY (there is an example at this URL: http://www.bii.a-star.edu.sg/infoscience/seg/fileTransfer.asp)

  • Passing list of values to a function

    As what type list of values multiple selections, e.g. resulting in (1,2,3), are represented in function parameters?
    for example i have lov that results in (1,2,3) and dataset query is select myfunction(:mylov) from dual.
    Variable of what type I must declare in function definition?

    when i hadthe same situation , i used cursor query to resolve .
    eg.
    select myfunction(cursor(select field1 from table1 where field1=:parameter1)) from dual
    In the PL sql function get all thee parameters from the cursor variable and pass into the looping statement for furthur processing

Maybe you are looking for