Complex return type for operations in Application Services

Hi all,
I am trying to create a complex return type for one of operation in CAF Application service.I have created a complex dataStructure  named productList and added product bussiness object as its attribute with cardinality 0--n. And used product dataType as my return type.
But I am not getting any output but its work fine with cardinality 0--1.
I am using CE 7.1 SP5 trial version.......
Can anyone

Hi,
And used product dataType as my return type.
Are you sure you did not forgot to change you operations return type to "productList"?
Best regards
Philipp

Similar Messages

  • CE7.1 SP3/SP4 Application service - complex return type

    Hi all,
    can anybody tell me how to create an operation with a complex return type (collection) within an application service.I can't find it in the documentation!
    I would appreciate helpful answers.
    BR,
    Martin

    Hi,
    It isnt that tough ... following are the steps ..
    Suppose you want to return a list of customers. First create a structure "Customer". Once that is done create another structure "CustomerList" ... now add "Customer" to it as the attribute. Set the cardinality of this "Customer" attribute as 0-n or 1-n ...
    Thats it .. Hope this helps.
    Ashutosh

  • How to access  complex data type from a soap web services?

    hello
    can u please tell me how can i access complex data type from a soap web service from jdeveloper 10g
    Jdeveloper generates 3 classes
    serviceStub
    getproperties
    response
    i have to retreview the data which is a complex data type it gives some
    unknown type. and the return value is a key-value pair data type .
    regards
    vs

    After you create the partner link and the invoke (to create the variables), change the element type of the response message to the complex type definition of your collection that appears in the XSD. You can do the same thing if you want to change the element type of the payload of the request message as well.

  • Easy way to evaluate a complex return type in adf taskflow

    Hi,
    I use a method call in adf taskflow where I call a bpel ws . This bpel has a complex return type. I want to evaluate in the taskflow router if STATUS==true . Can this be done with pageflowscope (in the method call , I have a return value) or do I need a methodIterator / accessorIterator in the pagedef.
    thanks edwin
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.47.96"
    id="process_Result" Package="nl.ordina.order.view.CreditCheck"
    BeanClass="nl.ordina.order.view.CreditCheck.process_Result"
    isJavaBased="false">
    <Attribute Name="STATUS" IsUpdateable="0" Type="java.lang.Boolean"/>
    <Attribute Name="LIMIT" IsUpdateable="0" Type="java.math.BigDecimal"/>
    <Attribute Name="REASON" IsUpdateable="0" Type="java.lang.String"/>
    </JavaBean>
    Here is the methodaction in the pagedef
    <methodAction id="process" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="process" IsViewObjectMethod="false"
    DataControl="CreditCheck" InstanceName="CreditCheck"
    ReturnName="CreditCheck.methodResults.process_CreditCheck_process_result">

    nice try,
    Unfortunately your method is easily circumvented by either 1.) disabling javascript in the browser preferences or 2.) viewing the source code for the page and clearly seeing the required password or 3.) simply bookmarking and visiting protectpage.html
    It may take you 5 mins. to password protect your iweb site by using the method you've described, but it would take a visitor less than a minute to bypass the password protection. You need server-side scripting like php to enable real password protection so that information is processed on the server before the page is loaded.

  • EJB3 Creating Web Services with Complex Return Types

    Hi
    Not sure if this is the right place, but hoping someone can help!
    I have an entity bean that has a collection (list<Address>) of sub-entities. I have then created a session bean to retrieve the Business and populate it's children.
    I then expose this as a web service and although it works and I get appropriate XML out, the WSDL of the deployed service is not as I would like.
    For example:
    The return type is
    <complextype name="Business">
    <sequence>
    <element name="id" type="int"/>
    <element name="addresses" type="ns1:list"/>
    </sequence>
    </complextype>
    <complextype name="Address">
    <sequence>
    <element name="id" type="int"/>
    <element name="addresses1" type="string"/>
    <element name="addresses2" type="string"/>
    <element name="addresses3" type="string"/>
    </sequence>
    </complextype>
    ns1:list is included as a separate schema as a complex extension of the base "collection"
    So, even though the Address type is there it is not referenced from Business.
    So, when I'm calling the Web Service from BPEL or ESB, I have not got the ability to map adequately back from the response.
    I have tried a whole bunch of ways of getting this to work, but so far to no avail...
    Has anyone seen this before, or can I somehow override the mapping from the Entity to the WSDL?
    Any help would be most appreciated.
    Thanks
    Chris

    Thanks. We are using a Java Proxy to consume the web service as we need to use JAX-WS handlers. We created data control from the service stub that was created by the proxy. Our issue is with the response XML which comes as a complex type. Also, the data control is understanding the complex type and is creating the structure right. The problem is when we drag that control on a JSF page. No data is displayed. We think that we are not traversing the complex object properly which is creating the issue.
    I understand that you answer related to the input is applicable to output as well. We can change the structure by flattening it but we thought that in 11G there is some new features where we can use the complex types out of the box without any change. Is that true? Also, any luck in finding the documents (broken links) on your blog page?

  • Non-void return type for Application Module Clients Interface

    Hello, can anyone guide me on how will I solve my problem.
    first of all, I'm using JDeveloper 10.1.3, I use JSF, ADF Faces, ADF Model, ADF Business Components.
    I made a web page that has a Transactional Capabilities, all is going smoothly, all data's can be saved to oracle database. I created a Custom Method in my Application Module and can be used in Clients Interface, that method is for saving data's to database.
    My problem is I dont know how to create a custom method that returns a value in my Application Module. Which means if I set it to non-void return type, it is not visible to Client Interface. If you're going to ask me why I need it to return a value? Well since that method is for saving data's, if there's an Error Occured, I can return the Error Message and show it to my user interface.
    Please help. thanks

    If you want to return your own type then simply define it as serializable and you will find that it will appear in the Client Interface dialog of your AM.
    eg, you could return this type from your application module to progagate a meaningful message to your UI:
    package com.delexian.model;
    import java.io.Serializable;
    public class MyMessage implements Serializable {
        private String _severity;
        private String _message;
        public MyMessage() {
        public void setSeverity(String severity) {
            this._severity = severity;
        public String getSeverity() {
            return _severity;
        public void setMessage(String message) {
            this._message = message;
        public String getMessage() {
            return _message;
    }regards,
    Brenden

  • Use the findByMultipleParameters bo operation in application service

    Hi
    I am trying to use the default findByMultipleParameters operation of a business object in an application service.
    I want to use the application service exposed as a webservice within webdynpro.
    But how can I pass all the parameters i a way, that it is not necessary to fill all fields in webdynpro? Is there any example code?
    Any help would be appreciated.
    Bernd

    Hi Ketan,
    You can implement findAll or findById in application service. First while defining the operations set the output parameter to be a structure which contains that BO(You create yourself a complex structure for it-there you can set cardinality).
    Then in the application service under that operation using the service Bean of the BO access the Bo's corresponding methods(either findById or findAll). Get that output and set it in the output parmeter and return it.
    public com.caf.types.FindAllAmendmentsResMsg findAllAmendments(
                   @javax.jws.WebParam(name="inputParameter1")
                   com.hcl.xapps.ipr.caf.types.FindAllAmendmentsReqMsg inputParameter1) {
              FindAllAmendmentsResMsg response = new FindAllAmendmentsResMsg();
              try {
                   List<Amendment> amendmentList = new ArrayList<Amendment>();
                   amendmentList = (List<Amendment>) this.getAmendmentService().findAll();
                   response.setAmendmentList(amendmentList);
              } catch (CAFFindException cfe) {
              return response;
    The above is an example for findAll.
    Hope it helps you
    Regards,
    Srinivasan Subbiah

  • Creating a Business Service for Start/Stop Application Service in CCB 2.3.1

    Hi,
    I'm in the process of creating a BPA script that invokes a Business Service to perform a Start/Stop for a given Account ID/Premise ID combination. The Business Service is using the base Application Service: Start Stop (CILCSSEP). I am moving the Account ID and Premise ID, along with the start date and requested by fields to the data area of the Business Service, prior to invoking it. When I invoke the Business Service via the BPA script, it throws the below error message... I'm at a loss because the BILL_ADDR_SRCE_FLG is being set to a default of "PREM" on the Business Service Schema:
    A Bill Address Source is required on the address override record. Please enter a valid value.
    One of these two is true:
    1) The Bill Route Type on this record has a Bill Routing Method of 'Postall', or
    2) The main customer on the Account has a Quote Route Type with a Quote Routing Method of 'Postal'.
    In either case, the Bill Address Source must be populated with a valid value.
    If you need support please supply the following info to system support:
    Message number: 3, 59204
    Business Service: CMSTARTSERVICE
    Application Service: CILCSSEP
    Schema:
    <schema pageAction="fastChange">
    <accountId mapField="ACCT_ID"/>
    <df mapField="DEFAULT_FOR_FLG"/>
    <startDate mapField="STRT_START_DT"/>
    <startOption mapField="STRT_TYPE_FLG"/>
    <premiseId mapField="STRT_PREM_ID"/>
    <premAddress mapField="ADDRESS1"/>
    <premCity mapField="CITY"/>
    <startCisDiv mapField="STRT_CIS_DIVISION"/>
    <startReqBy mapField="STRT_STRT_REQ_BY"/>
    <bldStrtSaSw mapField="BUILD_START_SA_SW" default="true"/>
    <accountIdtwo mapField="ACCT_ID2"/>
    <mainCustPerId mapField="MAIN_CUST_PER_ID"/>
    <billFrmtFlg mapField="BILL_RTE_TYPE_CD" default="POSTAL" private="true"/>
    <billAddrSrcFlg mapField="BILL_ADDR_SRCE_FLG" default="PREM"/>
    <billAddrSrcFlg2 mapField="BILL_ADDR_SRCE_FLG2" default="PREM"/>
    <startStopTelephoneOverride type="list" mapList="OVRD_PHONE">
    <accountId mapField="ACCT_ID"/>
    <sequence mapField="SEQ_NUM"/>
    <phoneType mapField="PHONE_TYPE_CD"/>
    <internationalPrefix mapField="COUNTRY_CODE"/>
    <phone mapField="PHONE"/>
    <extension mapField="EXTENSION"/>
    <version mapField="VERSION"/>
    </startStopTelephoneOverride>
    <startBtn mapField="ACTION_START_SW" default="true" private="true"/>
    </schema>
    I'm running CC&B 2.3.1 - Any help in pointing me in the right direction to get this working would be greatly appreciated, Thanks!
    Regards,
    Jack

    Hi,
    Can you try and do this transaction online and see if the error occurs as well? If so run it with traces on and check for the details just before the error is thrown. ( you can also switch on debug via the service call, but it may be easier to debug when doing this online. ) I am predicting this error will occur also when you do it online.
    When you are using an Account with its main Person set up with BILL_ADDR_SRC_FLG as PREM you will need a valide PREM_ID on the CI_ACCT record for MAILING_PREM_ID and the premise needs to have a switch set to YES indicating it is a Mailing Address type Premise.
    Good luck
    Arjen

  • Return type for count queries

    Hello,
    My entity manager executes a native query for a count(*) operation to get the row count from a table. But I am confused to see that while executing I get different datatypes such BigInteger, BigDecimal etc on different runs of the same query. Why is this so?
    What is the deciding factor for count queries data type??
    Please help....

    The whole point of a constructor is to create an object on the heap and return a reference to that memory block. In fact the call to the constructor will return a reference to the instantiated object. Thus there is no point in specifying a return type to a constructor.
    If you think about the way we call the constructor then it's obvious that it's not a regular method which goes inside an object.
    Hope this will do what you want :)

  • Consuming Busniess Object Operations in Application Service

    Hi,
    I am currently working on CE7.1.
    Is there any way in CE7.1 to consume the operations of a business object in a application service present in the same application? Please give the procedure in detail.
    I am able to access the business object structure in the application service by maintaining a dependency but not the operations defined for the business object.
    Thanks,
    Rahul

    Hi Rahul,
    I am facing the same problem.
    I am not able to access the Business Object Operations namely CRUD operations in the application service.
    I have defined the BO as dependencies in the application service.
    But when i open the Operations tab, it is empty.
    can you please help me out as to how you solved your problem?
    Thanks & regards.
    Gaurav Raghav

  • How to capture the process type for a particular application

    In my application CRMD_BUS2000120 there are 3 process types namely incidents, zcomplaints and zrepair order. But all the 3 display the same description as New: Incidents . Since this is attached with the application name. How can i change the description according to the process type i select. If I select incidents the description should be Incident , if i select zcomplaints it should be zcomplaints. Can anyone guide me how to do this.
    Thanks in Advance,
    Anu

    Hi Fred,
    If you open any activities or opportunities, you can see the description if you select new button and click on the process type. It will be display Activities and below that New: Activity. Instead of always displaying the same description I want to override the description according to the process type. For me the application is not activity but Incident. Hope I am clear with the question.
    Thanks,
    Anu

  • Wrong calculation for condition type for misc. provision in service PO

    Hi Gurus,
    In service PO line item, we have maintained customised condition type for misc provision. this is % based on net price. It has been assigned account key and accrual key. It's manual. Logically, it should calculate the value based on the total of the net values of all service lines and post a single entry for all concerned service lines. What system is actually doing, it calculates the value correctly for total of net values of service lines in that PO line item but post it to the account as many number of times as the number of service lines in that line item.
    This is when service based IV is active for the PO line item. If I deactivate this, then it post the account once only which is ok.
    Please explain this behaviour. Also, I want to activate service based IV, what should I do to this condition type. Is there any condtion base formula or condtion value formual to be assigned in the pricing procedure?
    Thanks in advance,
    Sudhir Dahake

    Hi,
    Check if some user exit/ routine is written for the condition type.
    Check user exit RV60AFZZ, RV60AFZA, RV60AFZB,RV60AFZC for some code.
    If it is a manual condition check COPY CONTROLS or if it is automatic check condition records from which it is calculated based on qty, price, material type, etc.
    Regards,
    Amit

  • Return type for a PL?SQL function

    Hi,
    I am trying to register a PL/SQL function with discoverer which returns more than one numerical values. What return type should i use for this function....cant see an array or something like it from the Diccover end, when I try to register it.
    Please help.
    -S

    S.
    If you create a function, then you can pass in parameters but only return one value for the function.
    That return datatype cannot be an array, but just one value (ie: varchar, number, etc.).
    Russ

  • What is the default return type for a constructor

    I tried and found out that it should not be void, what is it? I am confused. Any clue? thanks

    constructors do not have return types. it is implicit that it is initializing a newly created object of the class of which it is a member.
    --p                                                                                                                                                                                                                                                                                               

  • Error while returning complex data type in a J2EE web service

    Hello,
    I am implementing J2EE web service which returns array of custom class object.
    I have implemented serializable interface to custom class, and also to session bean.
    But it gives the following error:
    Serializing object [Lcom.ltitl.j2ee.ejb.classes.ProjectDetails;@2a2289 fails. Nested message: XML Serialization Error. Object of Class [com.ltitl.j2ee.ejb.classes.ProjectDetails] does not have property [ObjId] of type [java.lang.Integer]. Check if the right object is passed to the serialization routine..
    As error stated about some property ObjId..I tried including such property in my class. But now it gave exception while deploying stating that ObjId already defined.
    Also I want to return multiple arrays of complex custom classes. i tried using vectors but didnt work. What is the method to return arrays of complex custom classes.
    Please help..
    Abhijeet

    Trying to create a web service that returns a Collection doesn't seem to be possible in Netweaver. The reason for this is that languages other than Java have difficulty in mapping Collections, amongst others, to their own native equivalents.
    There is a discussion on the subject here you may find useful:
    http://forum.capescience.com/showthreaded.php?Cat=&Board=webservices&Number=147&page=0&view=collapsed&sb=5&o=&vc=1
    The short answer is to use object Arrays instead, or a custom class that contains an array of each type of object you would expect to find in your Vector
    Hope this helps
    Steve

Maybe you are looking for

  • Can you insert and image into a PDF documnet?

    HI, I have a project in which we are generating a PDF form and filling in the values that a user has submitted. Before we fill in the information, we need to insert two images that will change each and every time. I have used  cfpdf addWatermark howe

  • How to Read data from Infocube

    Dear Friends, I have requirement to read data from Infocube. I know the Function module(FM) which SAP provided. The FM name is RSDRI_INFOPROV_READ. But when i am trying to execute this FM in SE37, it giving "Error generating the test frame" message.

  • Third party program to execute

    Hello , I am attempting to run a program which is written in VB ( it really does not matter the language) and call this program from my Java program . I would like to know if there is such command " run " exist in Java. This is type of things that l

  • Problem with merging partitions

    Hi all, I am having a bit of trouble partitioning the HD on the MBP. I hope you guys can help me. I would like to reformat the drive and have made a partition entitled "Backup" (see image link above) to store the files I need.  Now, I would like to m

  • HT1430 iOS 6 can't connect to wifi

    Just updated iOS 6-1 can't connect to wifi