Web Service Object Collections

So I was hoping someone could help me out with this. I have a
web service running server side which returns a collection of
product objects as a search result. I can databind the event.result
from the web service to a datagrid and review the contents of the
collection of the objects. What I would like to do is populate
product objects inside of flex off the collection return.
A trace of event.result reveals
[object Object],[object Object]
[object Object],[object Object],[object Object],[object
Object],[object Object]
1. Is there an equivlent to a .net
Collections.ObjectModel.Collection class in flex?
2. How can i loop through the results of the event.result to
populate a collection of these objects either as a collection or
arraycollection in flex?
Thanks for checking this out, help me if you can!!!
-Ryan

Figured this out,
trace(event.result[0].ProductName);
Breakdown: event.result [ArrayPossition] .
ObjectProperty

Similar Messages

  • FIM MA Export errors. There is an error executing a web service object creation.

    While checking for the permission, we have figured that the Built-In Synchronization account is being deleted by an Expiration Workflow.
    FIM MA Export errors. There is an error executing a web service object creation.
    While checking for the permission, we have figured that the Built-in Synchronization account was deleted by an Expiration Workflow
    Is there a way to restore. Thanks.

    I would re-run FIM setup - I think it can re-create this account
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Web Service Request Collection/Complex Objects doesn't work

    I am unable to call a .net web service using Adobe LiveCycle Designer 8.0. My test web service accepts either a complex object or a collection of the same object.
    EX)
    [WebMethod]
    public string CostChange(CostChangeNotificationItem change1, CostChangeNotificationItem change2)
    return "Success";
    [WebMethod]
    public string CostChangeColl(CostChangeNotificationCol changes)
    return "Success";
    I can successfullly create the connection to the web service. When i drag and drop the connection request/button/and response onto the designer i can call the web service successfully.
    However you never see the request objects on the form unless you change the subforms to flowed and the min and initial count of the object to 1. When this is done the web service never gets called. You can click the button until you are blue in the face with no successful call.

    Hello ,
    our problem was a result of a corrupt database. Please check the Log files in CUCM . have a look for "missed table entries "
    cli
    utils dbreplication repair
    check logs again    the path to the log is displayed after the repair.
    hope it helps
    good luck

  • Pl/Sql web service and collections not working

    Hello
    I'm trying to create a web service from a function in a package which returns a collection. The creation of the web service and its deployment seem to work correctly. I do get the following warning :
    WARNING: OWS-00077 The Value Type class: pxWsLang.PamLanguagerecordBase does not have a valid JAVA Bean pattern
    but I don't think this is the source of the problem.
    When I try to test the web service using the endpoint in the wsdl I get the following answer in the browser:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>Error creating target: pxWsLang.WsLangUser</faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
    In the DOS window for the OC4J I get the following error :
    2006-11-15 09:21:25.852 ERROR OWS-04005 An error occurred for port: {http://pxWs
    Lang/WsLang.wsdl}wsLangSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creati
    ng target: pxWsLang.WsLangUser.
    The PL/SQL code is as follows :
    Object:
    CREATE OR REPLACE TYPE PAM_LanguageRecord as OBJECT
    NR NUMBER(3),
    SYMBOL VARCHAR2(2)
    Collection:
    CREATE OR REPLACE Type PAM_LanguageTable as Table of PAM_LanguageRecord;
    Package body :
    create or replace package body PAM_TEST is
    function CursorTest return Pam_LanguageTable is
    Res_LangTable PAM_LanguageTable;
    cursor cur is select * from stc_languages;
    begin
    Res_LangTable := new PAM_LanguageTable();
    for Rec in cur loop
    Res_LangTable.Extend(1);
    Res_LangTable(cur%ROWCOUNT) := new PAM_LanguageRecord
    (Rec.NR,
    Rec.SYMBOL
    end loop;
    Return Res_LangTable;
    end;
    end;
    I'm using JDeveloper version 10.1.3.1.0.3984
    How can I get this to work ? (without using Apache Axis or other tools :-)
    Is it supposed to work ?
    Many Thanks
    Paul

    Hi,
    for the "error creating target" problem I found the solution here:
    [WS from a PL/SQL package]: Error creating target
    Hope this helps.
    Regards,
    Patrik

  • Native Web Services and Collection of Records

    Hi
    I want to use XMLDB Native Web Services but one of my requirements is for the web service to pass in to Oracle a collection of records as a input parameter to the stored procedure.
    What is the best way to achieve this with Native Web Services ? A couple of options I can think of below, are there any others ?
    1. Create a stored procedure with an IN parameter defined as CLOB or XMLTYPE (which is best, does DBNWS work with XMLTYPE ?) and structure the XSD/XML to contain the required record structure. See below
    CREATE OR REPLACE PROCEDURE test_using_xml (
    p_xmlin IN XMLTYPE,
    p_xmlout OUT XMLTYPE) AS
    BEGIN
    BLAH, BLAH, BLAH;
    END;
    2. Define TYPES as below
    CREATE OR REPLACE TYPE MEMBER_REC AS OBJECT
    (FIRST_NAME VARCHAR2(10),
    LAST_NAME VARCHAR2(10));
    CREATE OR REPLACE TYPE MEMBER_TAB AS TABLE OF MEMBER_REC;
    CREATE OR REPLACE TYPE MEMBER_TAB_OBJ AS OBJECT (DUMMY MEMBER_TAB);
    CREATE OR REPLACE PROCEDURE get_quote (
    p_members IN MEMBER_TAB_OBJ) AS
    BEGIN
    NULL;
    END;
    Thanks

    This is what we ended up using, creating complex object types. Seems to work quite well. The object also is effective your SOA Contract which is quite nice.
    The generated WSDL is reasonably straight forward and logical apart from a few naming quirks.
    CREATE OR REPLACE TYPE MEMBER_REC_IN AS OBJECT
    (PERSON_NUMBER CHAR(2),
    RELATIONSHIP_CODE CHAR(1),
    FIRST_NAME VARCHAR2(10),
    LAST_NAME VARCHAR2(10),
    GENDER CHAR(1),
    DATE_OF_BIRTH DATE);
    CREATE OR REPLACE TYPE MEMBER_REC_OUT AS OBJECT
    (PERSON_NUMBER CHAR(2),
    API NUMBER);
    CREATE OR REPLACE TYPE MEMBER_TAB_IN AS TABLE OF MEMBER_REC_IN;
    CREATE OR REPLACE TYPE MEMBER_TAB_OUT AS TABLE OF MEMBER_REC_OUT;
    CREATE OR REPLACE TYPE GET_QUOTE_SUBMIT_OBJ AS OBJECT (MESSAGE_GUID VARCHAR2(2000),
    EFFECTIVE_DATE DATE,
    PRODUCT_CODE VARCHAR2(12),
    GROUP_ID VARCHAR2(12),
    ADDRESS_LINE1 VARCHAR2(50),
    ADDRESS_LINE2 VARCHAR2(50),
    CITY VARCHAR2(50),
    COUNTRY VARCHAR2(50),
    POSTCODE VARCHAR2(10),
    FAMILY MEMBER_TAB_IN);
    CREATE OR REPLACE TYPE GET_QUOTE_RESPONSE_OBJ AS OBJECT (MESSAGE_GUID VARCHAR2(2000),
    QUOTE_NUMBER NUMBER,
    API NUMBER,
    FAMILY MEMBER_TAB_OUT,
    RESULT_CODE NUMBER,
    RESULT_DESCRIPTION VARCHAR2(2000));
    CREATE OR REPLACE PROCEDURE get_quote (
    p_quote_in IN GET_QUOTE_SUBMIT_OBJ,
    p_quote_out OUT GET_QUOTE_RESPONSE_OBJ) AS
    BEGIN
    -- Initiliase the record
    p_quote_out := GET_QUOTE_RESPONSE_OBJ(NULL,NULL,NULL,MEMBER_TAB_OUT(),NULL,NULL);
    p_quote_out.message_guid := p_quote_in.message_guid;
    p_quote_out.quote_number := 123456;
    p_quote_out.api := 999.99;
    -- Loop thru the members passed in
    FOR idx IN 1..p_quote_in.family.count LOOP
    -- Extend the array
    p_quote_out.family.EXTEND(1);
    -- Initiliase the record
    p_quote_out.family(idx) := MEMBER_REC_OUT(NULL,NULL);
    p_quote_out.family(idx).person_number := p_quote_in.family(idx).person_number;
    p_quote_out.family(idx).api := idx * 100;
    END LOOP;
    p_quote_out.result_code := 0;
    p_quote_out.result_description := 'test';
    END;
    /

  • Web Service Object Parameters and JAXB

    Hi All,
    This is my first post here and I'm hoping one of you might have encountered a similar problem before. One of our business partners provided us with a WSDL for their service, with an embedded XML schema. My job in this case is to write a message driven bean (MDB) that will take a message containing XML off of a queue and call this web service. However, their web service requires an object to be passed as input. So, I've used JAXB to generate a set of classes (from the schema I ripped out of their WSDL) that will unmarshal the XML document that comes off the queue. This works fine, however, the resulting object is an inherently different object than the object I need to pass to the web service, that one was created by auto-generating the Java proxy for the web service. Since these two classes come from the same schema definition, they have the same structure and can hold the same data, but they have different implementations. My plan is to write a method to copy the data from one object to another, but this feels redundant. Is there any approach I could use to make these two auto-generated sets of code be more compatible, other than the obvious answer of having written everything by hand? Thanks in advance for any replies.

    Are the XML instances coming from the queue and the request object to the WS defined by the same schema (from the business partner)? If they are different, there's no other option than to do a copy or some sort of XSLT (not that that's any easier though). But if the instances are defined by the same schema, just use some data binding framework that you can use for both reading the XML from the queue and that is incorporated into the WS toolkit you're using.
    For example, Axis2 allows you to use XMLBeans as a the data binding framework. Using the generated classes from Axis2, you can read in the XML instances from the queue and at the same time have the request object for the WS call.

  • Web Service Object Questions

    Hello;
    I believe I may be using improper terminology but I will try to explain as best as I can.
    I have been working on a web service form, with 2 methods. One is a get, where I put in parameters and it returns a result. Another is a form to input data into a database app.
    The get method has two routines, a validation of parameters (essentially a login) and the results object. The validation is able to be dragged onto the form, it appears completely and works perfectly. However; the results object cannot be dragged onto the form, it appears in design (as a subform) but will not display on the .pdf. Additionally; it contains only one segment of the data it is supposed to return. It would contain approximately 100 records, but only returns the first. If I drag each field onto the form separately, it comes in and appears on the .pdf. I can get it to work by copying the 4 fields repeatedly, and when I process the validation the additional records populate the copies. This is tedious work and I have forms for multiple services to design. I just wish I could drag the whole object and have the results display as a table with each row as a record.
    The input form has the same validation and approximately 30 fields for input, I have the same problem where dragging the entire method (creates a subform) doesn't display on the .pdf. Once again I can individually drag each field but it doesn't seen might that it appears in design but won't appear on the .pdf.
    Yes, they are set as visible, and they are already at the front of the form...
    Any help or suggestions are greatly appreciated
    -Tim

    Thanks for your help, I have a much greter understanding of subforms as a result. Your suggestions seem logical and I can understand how designer should work (flow,repeat,fill parent...)if I could get it to behave.
    Howerver, I cannot seem to get it to work right. The method has 4 levels in the hierarchy.
    Method; Body>Response>Result>Objects(fields that will repeat)
    I have tried every combination of settings, and I can only get it to work if I copy the individual fields over and over and make sure they are not contained in any subform. I have tried unwrapping the subforms one by one, creating my own subforms and applying the settings you sugggested, binding the individual fields to the full path to data, incrementally assigning the path to the appropriate subform level...
    One thing that happens is the initial drag-n-drop doesn't reveal the contents of the sub form, (they are set as 'visible', and I have tried repeatedly to move the fields to the front etc.). Even when I unwrap from the top down, I only see the fields when I unwrap the last one ( and then I have to bind to the full path to the data).
    A different method within the web service (a validation) displays under 3 subforms without any manipulating.
    If anyone has been able to work through a similar situation please let me know!

  • Possible Bug: Web Service Results Collection Error

    Doing some testing with APEX 4.02 on our development area, and running into an error..
    Running a form/report built off of a web service reference, form prompts for an input, data is returned from web service to report just fine, but when I go into session view collections, I am given a report error: ORA-19011 Character string buffer too small.
    Is this a known issue with collections and web services? I can confirm this was NOT an issue in 3.2, since we have just updated to 4.02 in past 48 hrs..
    Thank you,
    Tony Miller
    Webster, TX
    I cried because I did not have an office with a door until I met a man who had no cubicle.
    -Dilbert

    Tony:
    Thanks for reporting the issue. There was a change in the session pop-up page to include reporting on the new xmltype column in collections. Unfortunately the wrong function is being called on the xmltype column to display its contents. This will be fixed in an upcoming release.
    Application Express 4.0 Web service support makes use of this new xmltype column in a collection. Therefore if you call a web service that returns a large XML document, and you click the session toolbar, you will receive the error.
    Regards,
    Jason

  • MII Web Services Object questions

    1.  What is the WSDL Base Url property in the Authentication tab of the Configure Object screen?
    2. Is there a way to Trace the raw soap message and web service url that is sent when the web service is executed?
    Thanks,
    Steve

    Steve,
    Ok, in short:
    1) The WSDL Base url is prepended to the WSDL URL property.  This allows for the user to swap out the http://<server>:<port> when migrating between dev, qa, and prod without having to worry about modifying the entire WSDL URL.  In v12.1 the easy way to accomplish this is to create a Shared Memory property called something like WSDLBaseTargetServer and set it equal to your web service source system relevant to that particular MII instance.
    2) If you mean during design time simply use the Logging -> Tracer action, if you're talking runtime then you can write files into the MII content DB via the File I/O -> Write File & Web -> XML Saver action blocks.  Be sure to use the guid function in the expression editor to ensure that your generated filenames are unique.  So something like:
    "MyServiceRequestXML_" & guid & ".xml"
    Hope this helps,
    Sam

  • Java Web services - objects

    Unable to create webservice objects and further webservice proxy objects for Value objects which are stored in arraylist and sent via parent Value objects, i.e. if an object of "class1" is returned from one of the EJB's business method with an arraylist filled with "class2" objects, only "class1" objects are visible in webservice and Deployable Proxy not the "class2" objects

    Hi,
    On the proxy side you would see what is defined in the wsdl of the web service.
    In the wsdl I would say that class2 is not defined at all, and this is why you cannot see the class2 elements on the consumer side.
    As fast workaround - in order class2 to appear in the wsdl, made an echo method in the web service which uses class2 as parameter.
    ~Dimitar

  • Error: Web service object exists

    Hi all!
    I am very new with SAP Web Services so, to learn, I created a very simple function, enabled it for RFC, and activated and successfully tested it.
    After that, I tried to create a Service, starting the Wizard (Utilities > More utilities > Create web service > From the Function Module).
    I followed all steps, setting 'Endpoint type' to 'Function Module'; enabling 'Mapping names'. All remaining values are default values.
    Service name was set to 'Z_ESTRAZ_MATERIALI_n' (in the first trial n=1).
    After completion of the wizard, in the status bar appears a red-icon message that indicates that the service already exist (but I am sure that no service exists with that name).
    - The problem is highly reproducible (with new names).
    - In the transaction WSADMIN I cannot see any service listed.
    - SAP version: SAP ECC 6.0.
    What can I check to solve the problem?
    Many thanks.

    Hi all!
    After some trial-and-error it seems to me that the problem is solved when logging in English instead of Italian language. Doing this way, everything is ok.
    Bye.

  • CreateObject: web service object

    This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6 978.html

    This Usage section is missing the wsversion property. This allows you to force a call to an Axis-1 or Axis-2 service. See example below.
    ws = createObject(
         "webservice",
         "http://localhost/MyWebService.cfc?wsdl",

  • Calling web Service from the Custom Adapter.Is it Possible?

    Hi Experts,
                    I am having requirment in which i have to cal com.sap.aii.mapping.lookup.LookupService for calling web Service from the Custom Adapter.Is it Possible?
    Regards,
    Rajesh.D

    Hi Rajesh..
    Just looking the problem in another angle.. if there is no constraint that you have to use XI specific API to call the web service, why dont you use usual Java API used for calling a web service inside you custom adapter (I have Microsoft background.. donno exactly how it is done in Java,, but in .NET kind of a language it is possible). SInce your adapter is in Java itself and is capable of calling web service.. collect or lookup the data whatever you want and validate...
    Just a thought..
    VJ

  • Error during creation of web service from abap rfc

    Hi,
    I'm creating a web service from abap rfc (SE37), but at the end  of Creation Wizard I have this error:
    "web service object already exist".
    This is my first web service creation. Into WSADMIN there are not web services with the same name.
    How can I solve this problem?
    Thanks!

    Hi,
    What system/release/SP do you use ?
    Beginning with Netweaver 7.0 SP14, you configure Web services with SOAMANAGER and you don't see them with WSADMIN...
    Regards,
    Olivier

  • Web service transported but not active in QA environment

    Hi all,
    In order to support a template document i've created a web service using the web service tool. All is working fine in DEV and all has been successfully transported to QA environment (I think). The web service objects have been included in the transport using transaction CRMOST_TRANSPORT and I see the web service in the web service tool in QA.
    Problem is that the web service is not active. In the web service tool I see the web service and see that the Active status is still available to be selected. When I select it I get the following errors:
    - Object type does not exist
    - Not possible to get data for service object
    - Activation cannot be performed in this client:
    - Details Changes to Repository objects are not permitted in this client
    I read somewhere that you have to do 'after import functions' for web services but don't know what!? Is it simply a matter of opening the client in QA and reactivating the web service in the Web Service Tool?
    Thanks,
    Patrick

    Hi Patrick ,
    Ihave a question.
    I created a webservice through CRM 7.0 Web Service Tool
    ie we went to Component WS_DESIGN_TOOL and executed the component and we Launched the tool ,
    using tool we created a Web service for Sales Order, Due to missing of some settings I guess it didnt ask for a Transport request and it went and saved in an ' Local Object'.
    Could you please help in explaining as what steps we need to configure to make sure that the web service goes and sits in a Transport which is required in moving it to QA System.
    Regards,
    Sijo

Maybe you are looking for

  • W540 Wish List

    Dear Lenovo, seeing that you have completely messed up the Design of the W530 here is my recommendations for features to be included your next mobile Workstation: A 19:10 display with either an IPS 1920x1200 Display or an 2880x1800 (so called retina)

  • Automatic App Updates in iOS 7

    Hello, I have automatic app updates turned on but it doesn't seem to be doing anything. I've had to update my app manually so far. Right now I have three listed as "pending" but they haven't downloaded yet. Is there some kind of delay? Thanks.

  • ITunes Font problem after upgrade

    Hi - I just installed iTunes 12.1.0.50 and now all my fonts have changed into this big bold font. PLEASE SEE IMAGE BELOW - (iTunes, webpage, and Apple Post page) Anyone know how to fix it? Not only did it change in my iTunes, but now it's affecting m

  • Customizing cursor positioning in the delivery

    We are currently running SAP 4.6C with support pack level 48. We recently upgraded from support pack 29. Per OSS note 507967 which was applied per support pack 32, the cursor on all tabs under the Delivey Overview screen is placed on the first open l

  • Selecting manager names for 20 levels

    Hi, Could you please help me on the following scenario? Table "Base" holds the list of employee ids and names. Table "Mgr" holds the list of employee ids and their mgr ids (Who are also an employee) from level 1 to level 20. The requirement is to sel