How to retrieve web service results that are stored in an array?

Hi, everyone,
I am using a manually created web service reference in APEX3.0.1 to call an external web service for a simple company search. Here is the WSDL:
http://ws.strikeiron.com/DnBBusinessProspectLinkage2?WSDL
The web referene is tested fine. And here is a sample test result:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<SubscriptionInfo xmlns="http://ws.strikeiron.com">
<LicenseStatusCode>0</LicenseStatusCode>
<LicenseStatus>Valid license key</LicenseStatus>
<LicenseActionCode>7</LicenseActionCode>
<LicenseAction>No hit deduction for invocation</LicenseAction>
<RemainingHits>4921</RemainingHits>
<Amount>0</Amount>
</SubscriptionInfo>
</Header>
<soap:Body>
<CompanySearchResponse xmlns="http://www.strikeiron.com">
<CompanySearchResult>
<ServiceStatus>
<StatusNbr>213</StatusNbr>
<StatusDescription>Successful search</StatusDescription>
</ServiceStatus>
<ServiceResult>
<Count>2</Count>
<CandidateCompanies>
<CandidateCompany>
<CompanyName>MSC SOFTWARE CORPORATION</CompanyName>
<StreetAddress>2 MACARTHUR PL</StreetAddress>
<City>SANTA ANA</City>
<State>CA</State>
<PostalCode>927075924</PostalCode>
<Phone>7145408900</Phone>
<CountryCode>US</CountryCode>
<BranchIndicator>Headquarters</BranchIndicator>
<TradingName />
<ConfidenceCode>8</ConfidenceCode>
<MatchGrade>BAAAAZZ</MatchGrade>
<MatchNameGrade>Similar</MatchNameGrade>
<MatchNamePercent>62</MatchNamePercent>
<MatchStreetNumberGrade>Same</MatchStreetNumberGrade>
<MatchStreetNumberPercent>100</MatchStreetNumberPercent>
<MatchStreetNameGrade>Same</MatchStreetNameGrade>
<MatchStreetNamePercent>100</MatchStreetNamePercent>
<MatchCityGrade>Same</MatchCityGrade>
<MatchCityPercent>100</MatchCityPercent>
<MatchCountryStateGrade>Same</MatchCountryStateGrade>
<MatchCountryStatePercent>100</MatchCountryStatePercent>
<MatchPOBoxGrade>Not provided</MatchPOBoxGrade>
<MatchPOBoxPercent>-1</MatchPOBoxPercent>
<MatchPhoneGrade>Not provided</MatchPhoneGrade>
<MatchPhonePercent>-1</MatchPhonePercent>
</CandidateCompany>
<CandidateCompany>
<CompanyName>TYRA TECHNOLOGIES, INC</CompanyName>
<StreetAddress>2 MACARTHUR PL</StreetAddress>
<City>SANTA ANA</City>
<State>CA</State>
<PostalCode>927075924</PostalCode>
<Phone>7145408900</Phone>
<CountryCode>US</CountryCode>
<BranchIndicator>Headquarters</BranchIndicator>
<TradingName />
<ConfidenceCode>8</ConfidenceCode>
<MatchGrade>BAAAAZZ</MatchGrade>
<MatchNameGrade>Similar</MatchNameGrade>
<MatchNamePercent>62</MatchNamePercent>
<MatchStreetNumberGrade>Same</MatchStreetNumberGrade>
<MatchStreetNumberPercent>100</MatchStreetNumberPercent>
<MatchStreetNameGrade>Same</MatchStreetNameGrade>
<MatchStreetNamePercent>100</MatchStreetNamePercent>
<MatchCityGrade>Same</MatchCityGrade>
<MatchCityPercent>100</MatchCityPercent>
<MatchCountryStateGrade>Same</MatchCountryStateGrade>
<MatchCountryStatePercent>100</MatchCountryStatePercent>
<MatchPOBoxGrade>Not provided</MatchPOBoxGrade>
<MatchPOBoxPercent>-1</MatchPOBoxPercent>
<MatchPhoneGrade>Not provided</MatchPhoneGrade>
<MatchPhonePercent>-1</MatchPhonePercent>
</CandidateCompany>
</CandidateCompanies>
</ServiceResult>
</CompanySearchResult>
</CompanySearchResponse>
</soap:Body>
</soap:Envelope>
Here is my xpath defined in the report:
/CompanySearchResponse/CompanySearchResult/ServiceResult/CandidateCompanies
According to the WSDL file, the candidate companies are stored in an array. I am having problem to retrieve this values from the array. The web service ref is called but it returns nothing.
Anyone in the forum can tell me what I did wrong?
Thanks in advance!
Jeff

Hi, did you manage to figure this out? I'm having a similar problem with arrays.
Also, i'm looking at how I can pass an array of values as input to the webservice call.. eg if I were calling a stock ticker service that allows you to supply a list of tickers as input so that you can get all your responses in one call. Anyone any thoughts on that?
Cheers,
Paul.

Similar Messages

  • How do I back up documents that are stored in iCloud to my own hard drive?

    The trouble is, however I search for an answer to this question, I get instructions on how to back up stuff TO iCloud.
    I want to back up stuff that applications like Pages and Numbers are already storing IN iCloud.
    See, I don't want to have to trust iCloud to safely store my documents.  Not unless there are copies somewhere that I can fall back on if (it's really only a matter of when) something goes fatally haywire in iCloud.
    It's easy enough to do with a service like, say, Dropbox, which treats my "cloud-stored" files like they are in a folder on my hard-drive.  So when I run either a local (Time Machine/Capsule) or a cloud (Crashplan, in my case) backup, those files get backed up.  So I have at least three copies of those files - in Dropbox, on my Time Capsule, and on Crashplan's servers.
    So how do I do that with docs that are stored in iCloud?  Apple wants me to store stuff in iCloud - if I have iCloud enabled and want to save a doc to another destination, there are multiple steps I want to go through.  And I'm fine with using iCloud if I'm creating documents that I want to be able to access from my iOS devices as well.
    Yes, I can do that with Dropbox, but it's less seamless than doing it through iCloud.
    But I want my own backups of those files, and near as I can tell, Apple makes that nearly impossible because iCloud does not show up anywhere as a folder that I can access or sort.
    Or does it?  Am I missing something?
    If so, let me know.... if not... is there a solution to this dilemma, or is it just one more aspect of iCloud that Apple has not clearly thought through?
    Thanks,
    --PS

    Right.  You didn't read the post, you only read the title.
    The title came from an earlier step in the process when I was posing a question to the systen.
    The pertinent part of the question is "How to I back up documents that are stored in iCloud" 
    That the destination for the backup is NOT my internal HDD should be clear from the rest of the post.
    And frankly, even if that is where I want to back up to, that would at least give me two copies, at least giving me one duplicate of the stuff on iCloud.
    So please stop wasting my time if you can't answer the actual question: How do I backup content that is stored in iCloud.  The destination of the backup is irrelevant.
    --P

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • How do I delete multiple photos that are stored on my IPAD imported folder? I have a first generation IPad

    How do I delete multiple photos that are stored on my IPAD imported folder? I have a first generation IPad

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • How do I find my photos that are stored in iphoto on my mac?

    How do I find my photos that are stored in iphoto on my mac?  I don't want to access them through iphoto, I want to access them individually.  I have always done it previously through searching for the img number.  But it no longer works!

    That's half-correct. Direct access is supported.
    Find the photo in iPhoto, then go to the "File" menu and click "Reveal in Finder" - it takes you directly to the image file. Or right-click on the photo, and choose "Edit in External Editor" which opens the original file in other software, like Photoshop, if you have it.
    And it's dangerous to move, rename or delete the original file or folders after you found it, but safe to do other things.

  • How to retrieve web services return value

    I am using htmldb 2.0 and have created up the webservice reference. It's a simple web services, it will only return the string that I typed in one text area. Now my problem is that how can I print the string into my report area. In my webservice process, i just define the output of the webservices stored in one item in that page. Shall I write the value of that item to report region? Any ideas??
    Regards,
    Ke Lin

    Did you have any luck with this.
    I am having the same problem, I think, can set up the web service and it tests ok but when I run the process nothing happens, no values are passed back. Have checked the session state and nothing is there.
    Andrew

  • Web Services Parameters that are Arrays

    I am evaluating HTML DB to see if it would be possible to create a simple application that calls a web service.
    The web service was generated using JDeveloper and wraps up a PL/SQL function that takes an object type with several fields as an input parameter and a table of object types as the output parameter.
    The Web service therefore has an input parameter that is an single object containing several input fields and an output parameter that is an array of objects containing several result fields.
    The HTML DB 'test web service' or 'Create a form from a Web Service' does not recognise these input or output parameters, although the 'Web Service Reference' does list all the input and output parameters.
    I am assumming that there is a coding solution when using these kind of parameters but I cannot find any obvious guidence for this.
    Can anyone help or point me in the right direction?
    Thanks

    I have this same problem...
    Is it a bug?
    It's strange because other web services work fine
    is it because we are using the wrong format or version wsdl?
    anyone have any ideas?

  • HT4009 how to retrieve in app purchases that are missing?

    i purchased coins from the injustice game and a couple of months later my phone crashed and i didnt back it up so all my previous app purchases were gone. how do i get this stuff back.

    Try restoring the app which should be in app. (When I say restore don't actually restore your device just the app it self.)

  • HT4623 How do I view my photos that are stored in icloud?

    Apple's mission statement reads "iCloud does more than store your content — it lets you access your music, photos, calendars, contacts, documents, and more, from whatever device you’re on."  but I cannot seem to figure out how to view my photos in the icloud.  Anyone know how to access these?

    Called Photo Stream, read here:
    http://support.apple.com/kb/HT4486

  • How do I backup my files that are stored on my time capsule?

    I use my time capsule as network storage (ie, iTunes library, iPhoto library, and lots of personal files). This way my wife and I can access these files from our individual laptops. Is there a good solution to automatically back these files up? I know Mozy does not support backing up of shared volumes. Does anyone have any suggestions?

    Bungalow, welcome to the discussions!
    Take a look at the Archive function to see if this might do what you want.
    Hard Drive > Applications > Utilities > AirPort Utility > Manual Setup > Disks (icon at the top of the pane).
    Please post back on your findings.

  • (261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?

    A<SYNCH-11> How do my web service methods accees EJBs and java classes?
    A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
    The .jws file really contains a simple class so you can program with it in the same
    way that you would use a regular Java class.
    To use an EJB you can go and access it directly as you would with any EJB remote
    client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
    a control to provide a very simple wrapper to the EJB. We will see this in detail
    on Thursday in the ADVC module.

    Futher information about the possibility of callback:
    It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
    in the callback functionality of asynchronous web services. If the client implements
    the appropriate methods for the callback but listens for them on a different port
    or binding than the SOAP request, then web service may be able to build a response
    if the client's "callback URL" is submitted as the beginning part of a conversation.
    Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
    this approach and other tips and techniques for building web services.
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
    this is true.
    Does it means my async methods will only work with J2EE clients?
    A<SYNCH-03> I do not know the limitations of .net but let me point out that
    is very
    difficult to provide asynchronous web service method invocation (this is
    different
    from an asynchronous web service). HTTP as a general communication protocol
    is based
    on a request and response paradigm so your client libraries will mostly
    likely be
    expecting a response even if it is empty (check the asynchronous example
    from today
    to see that the start method still returns an empty response). You must
    distinguish
    this from the notion of an asynchronous web service which is a business
    operation
    that occurs on the server whose return value/result is not directly associated
    with
    building response to the client. An asynchronous web service can (and generally
    will)
    be started and stopped with web service operations that are invoked synchronously.
    Thus MS .net clients can still be client to WLS hosted web services.

  • How to configuration web service in bw that I can open query in explore ?

    Hi
    Can anyone tell me how to configuration web service that when I click " luanch in web browser "in BEX Anaylzer , Display Query on  the web in BEx query Designer  open rsplan modeling on web ,what parameter will be configuration ,give me step to step to configuration
    thanks very much

    configure a messager service and some paramers
    thanks very much!

  • Difference between a Search and a Retrieve web service?

    Anyone has any idea what's the difference between a Search and Retrieve web-services generated by the 7.1 WS Generator? It seems like you can use both to retrieve any kind of result definition and search by any field.
    I don't mind really, just curious if I'm missing something.
    Alon

    Googling led me to this:
    Authentication:
    Portal: You log-in to the site. Provides you with information based on who you are.
    e.g. mail.yahoo.com
    Website: No log-in.
    e.g. www.yahoo.com
    Personalization:     
    Portal: Limited, focused content. Eliminates the need to visit many different sites.
    e.g. you type in your user name and password and see your yahoo mail only.
    Website: Extensive, unfocused content written to accommodate anonymous users needs.
    Customization :
    Portal: You will select and organize the materials you want to access. Organized with the materials you want to access.
    Website: Searchable, but not customizable. All content is there for every visitor.
    e.g. you can navigate to yahoo mail, yahoo shopping, geo cities, yahoo group. If you wish to use any of these services you will either have to authenticate yourself and see things personalized to you or you can simply visit sections that are for everyone like yahoo news were if you are not signed in then the default sign in is guest.

  • Web Service Method that returns an ArrayList

    Hi guys,
    I have to create a web service method that returns an ArrayList, but it's not working. My problem is:
    With the "@XmlSeeAlso" annotation, my client prints the result, but the ArryaList is not from java.util, it's from org.me.calculator so I can't use it.
    If I remove this annotation, I get no result, with this error message on Tomcat 6:
    [javax.xml.bind.JAXBException: class java.util.ArrayList nor any of its super class is known to this context.]
    I'm a newbie, and trying to understand web services (I read some posts here, but didn't get the point, from its answers), but this problem I just can't figure out how to solve....
    WEb Service
    package org.me.calculator;
    import java.io.Serializable;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import java.util.*;
    import java.util.ArrayList;
    import javax.xml.bind.annotation.XmlSeeAlso;
    * @author eduardo.domanski
    @WebService()
    @XmlSeeAlso({java.util.ArrayList.class}) // With this, I can see the result on client, but, the ArrayList is an org.me.calculator.ArrayList class.... Strange...
    public class CalculatorWS {
        @WebMethod(operationName = "valores")
        public ArrayList valores(@WebParam(name = "a") int a,
                           @WebParam(name = "b") int b) {
            ArrayList teste = new ArrayList();
            ArrayList a1 = new ArrayList();
            a1.add(a);
            a1.add(b);
            ArrayList a2 = new ArrayList();
            a2.add(a+b);
            a2.add(a-b);
            teste.add(a1);
            teste.add(a2);
            return  teste; 
    }CLient
    package org.me.calculator.client;
    import java.io.*;
    import java.net.*;
    import java.util.ArrayList;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ClientServlet extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet ClientServlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet ClientServlet at " + request.getContextPath() + "</h1>");
            try { // Call Web Service Operation
                org.me.calculator.CalculatorWSService service = new org.me.calculator.CalculatorWSService();
                org.me.calculator.CalculatorWS port = service.getCalculatorWSPort();
                // TODO initialize WS operation arguments here
                int i = 8;
                int j = -6;
                // TODO process result here
                ArrayList result = (ArrayList) port.valores(i, j);
                out.println("Result = " + result);
            } catch (Exception ex) {
                System.out.println(ex);
            // TODO handle custom exceptions here
            out.println("</body>");
            out.println("</html>");
            out.close();
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
    }THank you all,
    Eduardo
    Edited by: EduardoDomanski on Apr 23, 2008 4:40 AM

    I forgot to say that, when I try to return an ArrayList of an object, for example, ClassA, which is on the package org.me.classes, on my Server App, the ArrayList is returned, but the objects are from type org.me.calculator.ClassA. It should be from org.me.classes.ClassA, right?
    This package also exists on my client App, to use the object, but as the returned type is from another package, I can't even cast it. I tried some annotations @Xml... but it failed.
    Packages
    ServerApp
    org.me.calculator
    CalcWS.java
    org.me.classes
    ClassA.java
    Client App
    org.me.classes
    ClassA.java
    The return from my method should be an ArrayList of org.me.classes.ClassA, but when I print it, on client, it's from org.me.calculator.ClassA.
    Does anybody knows, or had the same problem?
    Thanks,
    Eduardo

  • Displaying Web Service Results in a Report

    have a web service registered with APEX (GET_DAY_OF_THE_WEEK).
    It tests fine from the Web Service References Panel.
    I am trying to follow the steps in the Oracle Database Application Express
    User's Guide [Release 2.2 Part Number B28550-01] under the Displaying Web
    Service Results in a Report topic.
    When I get to step 6 = "For Result Tree to Report On, select the portion of the
    resulting XML document that contains the information you want to include in the
    report." ... THERE IS NO PLACE TO -->"...select the portion of the resulting
    XML document that contains the information you want to include in the report".
    Is this a bug? Is there a workaround?
    Steve

    Hi,
    I'm having a similar problem - I have a work_date column and I want to use a date picker to select tasks performed between 2 dates.
    For example, on Page 3 I have a username,client_name and task fields. I have 2 date pickers, one for start date and one for end date, and a submit button.
    I want to be able to select '01-AUG-10' from the start_date, then '31-AUG-10' from the end_date, then redirect to a page (Page 41) when I click the button to run this:
    select username,client_name,task,work_date
    from replicon where
    username = :P3_USERNAME and
    work_date between to_date(:P3_START_DATE,'DD-MON-RR') and
    to_date(:P3_END_DATE,'DD-MON-RR')
    order by work_date
    but I'm getting this error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    The date format is "DD-MON-RR', and the work_date column is a "DATE" data type.
    The button items are "P3_USERNAME","P3_START_DATE" and "P3_END_DATE" with the same values (&P3_USERNAME etc), and the button redirects to page 41.
    I can't see how I can pass the username, start_date and end_date from Page 3 to Page 41. Am I using the correct ITEMS, or is it the query?
    Help appreciated.

Maybe you are looking for

  • Reg.Creation of production order in past dates

    Hi all,   Tell me that is there any possibility to create production order in Past dates.Let me explain my requirement. I create Production order mannually in CO01.By creating using this transaction code i need to save the production order on past da

  • Why is Adobe Muse not spell checking?

    So I am building a site on Adobe Muse CC and I noticed the program is not spell checking as I write.  I purposely misspelled words to see if the spell checker would put the red squiggly line underneath misspelled words but it doesn't.  I have searche

  • Blackberry and its relation with mobile operators

    Hi, Saw some people says that their bb is locked to the operator. How to know if its locked and if its locked, how to unlock it so that I can use on other operator? Thanks in advance! Solved! Go to Solution.

  • Sound issues on the white MacBook?

    I'm just wondering if this is anything anyone has heard of. Apparently iTunes on my mom's MacBook will only play at a nearly inaudible volume. I just got off the phone with her and had her turn her iTunes volume slider up and the system volume all th

  • A nice small change to Time Machine

    I like how, in Snow Leopard, instead of merely saying "Preparing backup..." it tells you "Calculating changes", and tells you how far through the process it is. Message was edited by: kjb