Looking for a simple example of how to query all the accounts

I'm new to the web service model in oracle crm and have been trying to just get a list of the accounts in the system. I generated a .cs class from the account wsdl and added it to my asp.net project. I'm able to get a handle on the account class but not sure the right syntax to make a call out.. As a fyi - i also have been able to login thru the service and obtain a session id.. so I'm that far..
Are they any existing code examples on how to query this? This is what I have so far but i throws an exception -
Account act = new Account();
act.Url = "https://"+dbcon.serverName+"/Services/Integration;jsessionid="+ sID;
AccountWS_AccountQueryPage_Input qbe = new AccountWS_AccountQueryPage_Input();
AccountWS_AccountQueryPage_Output qRet;
qbe.ListOfAccount = new Account1[1];
qbe.ListOfAccount[0] = new Account1();
qbe.PageSize = "20";
qbe.StartRowNum = "0";
qbe.ListOfAccount[0].AccountId = "";
qbe.ListOfAccount[0].Description = "";
//act.CookieContainer = .... is this line needed?
qRet = act.AccountQueryPage(qbe);
return qRet.ToString();
Thanks in advance for your help - Todd
Edited by: user11139473 on May 6, 2009 6:33 PM

Hi,
I am doing the same thing but I am not sure what is Account1 in your case. Can you show me the implementation of Account1 class?
Account act = new Account();
act.Url = "https://"dbcon.serverName"/Services/Integration;jsessionid="+ sID;
AccountWS_AccountQueryPage_Input qbe = new AccountWS_AccountQueryPage_Input();
AccountWS_AccountQueryPage_Output qRet;
qbe.ListOfAccount = new Account1[1]; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< qbe.ListOfAccount = new ListOfAccountQuery();
qbe.ListOfAccount[0] = new Account1(); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
qbe.PageSize = "20";
qbe.StartRowNum = "0";
qbe.ListOfAccount[0].AccountId = ""; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
qbe.ListOfAccount[0].Description = ""; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//act.CookieContainer = .... is this line needed?
qRet = act.AccountQueryPage(qbe);
return qRet.ToString();
On the right is my line of code. The ListOfAccount member of AccountQueryPage_Input has datatype ListOfAccountQuery. In my case, a NULL is returned after the call.
Did you code work in the end?
Thanks

Similar Messages

  • I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma

    I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma???

    I am working on a friend of mine's 15g ipod(W/dock connector)and I am having the same trouble except it does it to all the songs. I have tried reseting it multiple times, but to no avail.
    I am not sure that this runs on windows XP, it is absolutly archaic (compared to my 5th gen. 30g video).
    Help?
    15g ipod (w/dock connector)   Windows XP  
      Windows XP  

  • Looking for a simple example of the Minimax algorithm in java

    Hey everyone,
    I'm currently working on a Gameboy emulator program as a pet project, and for one of the game's I'd like for the enemy AI to use the Minimax algorithm, but I don't have any experience with it (or recursion in general, for that matter). Could anyone maybe post a simple example of how this algorithm works?

    WTF? I'm sure you can find plenty of examples on google. It's on you to take the time to go through them, study them, and, if you still don't understand something, post a clear, concrete question that indicates what you read and what you didn't understand about it.
    As is, you're essentially treating folks here as your research flunkies and saying, "Give me an example that's better than all the ones already easily available to me. Read my mind to know why I didn't like them."

  • My Sons Ipod touch keeps coming up showing Low Memory ??? Is there a Simple Fix and How to Delete all the Pages it has Created in Doing so ??? Any Help would be more than Appreciated to Repair this Problem and getting it working back to 100% ... Thank You

    My Sons iPod Touch Recently Reads Low Battery all the Time now Since downloading and Playing COD ...  Is there a Simple Fix for this ???                       Or Something I need to do to Correct it and Also to Possibly Erase all the Low Battery Error Pages it has Created ???  Maybe he needs to Catorogize them or ???  Not Really a Electronics Wizz  or up to date on My iPod Electronics and Repair ...  Just trying to get his iPod back working to 100% again ... Any Help or Direction would be Greatly Appreciated ,,, Thank You,,, Brian  : )

    If the memory is low, double click the home button to bring up the multitask bar, tap on one of the apps shown until they start to shake, then hit the little red minus to close them. After all apps are closed that way, press the home button again and see if it works now.
    Maybe you'll reset the device as well by pressing the home and sleep button for about 10sec, until the Apple logo comes back again. You will not lose data doing this, but it can clear some glitches as well.

  • I need for a simple example of  reading a xml file using jdom

    Hello
    I have been looking for a simple example that uses Jdom to read am xml file and use the information for anything( ), and I just can't find one.since I'm just beggining to understand how things work, I need a good example.thanks
    here is just a simple cod for example:
    <xmlMy>
         <table>
              <item name="first" value="123" createdDate="1/1/90"/>
              <item name="second" value="456" createdDate="1/4/96"/>
         </table>
         <server>
              <property name="port" value="12345"/>
              <property name="maxClients" value="3"/>
         </server>
    </xmlMy>Dave

    Hi,
            FileInputStream fileInputStream = null;
            try {
                fileInputStream = new FileInputStream("my_xml_file.xml");
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } finally{
                if (fileInputStream == null) return;
            SAXBuilder saxBuilder = new SAXBuilder();
            saxBuilder.setEntityResolver(new EntityResolver() {
                public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
                    return new InputSource(new StringReader(""));
            Document document = null;
            try {
                document = saxBuilder.build(fileInputStream);
            } catch (JDOMException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
                if (document == null) return;
            Element element = document.getRootElement();
            System.out.println(element.getName());
            System.out.println(element.getChild("table").getName());

  • Looking for a simple drawing application for my grand-daughters

    Well, that's more or less it, I'm looking for a simple drawing application for my grand-daughters. In the children section of iTunes store, there's only a few books and nothing more. I bought the iPad mainly for my grand-children to teach them a bit and I don't find interesting things for them.
    Can anybody help me with that?
    Pedro Godfroid Goffin

    Brushes is a nice finger drawing app. Since you didn't say how old they are, I don't know if the interface is to difficult for them to use.
    Sketchbook is another nice drawing app.
    Neither are free.
    Glor

  • Looking for a simple answer ........ without the ...

    looking for a simple answer  ........why is it more difficult for skype to connect than before . It fails to ring most times and your never sure if it is just slow or did not dial in the first place???  and is there any way to disable the leave a message feature ??? I am afraid soon it will be like most wondows applications where you will need endless updates and patches just to keep it running ..... Why is it that everyone is trying to fix everthing when it isnt broken.

    WTF? I'm sure you can find plenty of examples on google. It's on you to take the time to go through them, study them, and, if you still don't understand something, post a clear, concrete question that indicates what you read and what you didn't understand about it.
    As is, you're essentially treating folks here as your research flunkies and saying, "Give me an example that's better than all the ones already easily available to me. Read my mind to know why I didn't like them."

  • I'm looking for a simple DJ app

    Hi Folks,
    I hope this is the best place for this question!  I'm looking for a simple App that will allow me to add music on the fly to a playing playlist. iTunes DJ does most of what I want but doesn't allow me to drag and drop order or remove songs.  I don't need turntables or eq or anything like that.  Just a simple way to create playlists on the fly with the ability ro rearange the order, add and remove songs on the fly. Also, if there's a better forum for my question, please advise.
    Thanks!
    Greg

    Which particular Mac OS are you running, psychmac?

  • Looking for a simple way to convert a string to title case

    New to LiveCycle and Javascript.  Looking for a simple way to convert a string to title case, except acronyms.  Currently using the the following, it converts acronyms to lower case:
    var str  =  this.rawValue;
    var upCase = str.split(" ");
    for(i=0; i < upCase.length; i++) {
    upCase[i] = upCase[i].substr(0,1).toUpperCase() + upCase[i].substr(1).toLowerCase();
    this.rawValue = upCase.join(' ');

    Thanks for the reply.
    Found the following script in a forum, which works fine as a "custom validation script" in the.pdf version of my form.  However, it will not work in LiveCycle?  The problem seems to be with
    "return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g"
    function toTitleCase(str) {
    var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;
        return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(match, index, title){
    if (index > 0 && index + match.length !== title.length &&
      match.search(smallWords) > -1 && title.charAt(index - 2) !== ":" &&
    (title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') &&
    title.charAt(index - 1).search(/[^\s-]/) < 0) {
    return match.toLowerCase();
    if (match.substr(1).search(/[A-Z]|\../) > -1) {
      return match;
      return match.charAt(0).toUpperCase() + match.substr(1);
    event.value = toTitleCase(event.value);

  • Looking for a simple flip book template for Flash CS5

    Hi, I'm looking for a simple flip book template for Flash CS5 for a 20 page brochure/ booklet. Or a tutorial. Does anyone know of one?
    Thanks!

    Hi Mark,
    No need to restrict your choice to the preset Pages Templates. Do a web search and choose a Word template. Pages will open Word documents and templates. Or design your own:
    This is a Table I inserted into a blank Pages Word Processing document. Format the date column in Inspector > Table > Format > Cell Format. Select the first Date cell,then drag the fill handle down to increment the dates.
    Regards,
    Ian.

  • Looking for a simple tutorial to building my first responsive web site in Dreamweaver CC.

    I am looking for a simple tutorial to building my first responsive web site in Dreamweaver CC.
    I have watched the tv.adobe video 3 times and I cam not able to do the actions the author shows.
    help.
    Ken Edwards

    Responsive and simple don't go hand-in-hand.  First do some prep-work to understand the concepts.
    Responsive Web Design
    http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/
    Introduction to CSS Media Queries
    http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
    Jump start your RWD projects with any of the Responsive Frameworks below:
    Foundation Zurb
    http://foundation.zurb.com/templates.php
    Skeleton Boilerplate
    http://www.getskeleton.com/
    Initializr (HTML5 Boilerplate, Responsive or Bootstrap)
    http://www.initializr.com/
    DMX Zone's Bootstrap FREE extension for DW
    http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
    Project Seven's Page Packs (Commercial CSS Templates)
    http://www.projectseven.com/products/templates/index.htm
    Have fun!!
    Nancy O.

  • Looking for a simple voice to text app

    I am looking for a simple app that will recognize my contacts and create voice to text messages. What is the best? Thanks for your help!

    Thanks, this app is simple and it works well. It has good voice recognition.

  • I am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    i am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    No, you will need something more advanced, like Photoshop.

  • I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?

    I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?

    I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?

  • I'm looking for some inspiration here on how best to set up my TC

    Copied from a post else where, any help greatly appreciated!!
    I'm looking for some inspiration here on how best to set up my TC for my needs & wondering how others do for similar needs....
    I have a 2TB TC that I have set up so that all of mine & my girlfriends photo's, music, movies & documents are on the one location so that we can access it wirelessly from both our MacBooks & also from a MacMini which I'm going to buy in a month or 2. Changing the location for where iTunes & iPhoto look wasn't a problem but browsing through iPhoto in particular is really slow due to the number of previews I presume, and also we are now unable to have any of the media with us when traveling about, synching phones on the move is a disaster as well!
    Anyway,
    is there an easy way of setting up iTunes / iPhoto so that we can have all the data on the TC managed on the MacMini but import small iTunes Playlists & iPhoto Albums to our MacBooks without having to change in preferences where the applications look for data each time we get home?
    Any help anybody can offer would be grand!
    Thanks in advance.........

    You topic might be better suited for the iPhoto or iTunes forums, since your question seems to be with the application(s) functionality, not really the Time Capsules. However, if you start iPhoto or iTunes while holding down on the "option/alt" key, you can manually select a library to access. When you want one of your computers to access the library on the Time Capsule, make sure it's mounted as a shared volume on your Desktop and then open iTunes and point it towards the library on the Time Capsule. If you want to use a smaller library on your computer, open iTunes and point it to the library on your Mac. I've never switched back and forth multiple times between multiple libraries, so you might check in the iPhoto or iTunes forums to see if any issues may arise from doing this repeatedly.
    -Doug

Maybe you are looking for

  • Class name and file name

    if i have putiple classes in a single file then if a clas declared as public then the file name shoud me same as class name.... why? if i declare two public class in a same source fiel what will happen???????? plz help................ thanks in advan

  • 10.5.8 Update causing havoc

    I was happily using my laptop last night when Software Update popped up telling me to install the new Mac OS X 10.5.8 Update. I ran the update in the background and carried on what I was doing. I then had to restart. The computer rebooted and the ins

  • NO SOUND, FAILED TO PLAY TEST TONE

    I have a Compac pressario with windows 7 starter, a week ago an update didn-t  allow me to use the virtual keyboard, I run a restore to a previous point and it ended up  with no sound also I UNISTALL - REINSTALL AUDIO DRIVER, EVERY TEST SAYS THERE IS

  • How to execute the output of the below query automatically

    Hi All, I want to execute the output of the below query automatically, instead of manually copying it and execute. select 'alter database ['+name+'] set recovery simple' from master.sys.databases where database_id > 4 and state_desc = 'online' Please

  • Best practice for exporting the same disk to multiple guests?

    I've got a T4-4 with two service domains. Each service domain has access to the same pool of SAN disks. primary service domain has vds primary-vds0 secondary service domain has vds secondary-vds0 So far I've sucessfully built a single backend service