How comples return types and parameters are mapped

Hi all!
I want to know how complex return types and parameters in a java interface gets mapped to wsdl? for example how would the wsdl for the following interface shall look like:
interface ComplexReturns{
   java.util.Date getLuckyDate(java.util.Date DoB);
   myPack.MyClass getMyClass();
}

Hi,
- In your application module, make a public method that returns an arry, for example an arry of strings[]
    public String[] returnTwoVals(){
        String[] returnvals = {"1","2"};
        return returnvals;
    }- expose this method in the application module
- in the user interface drag/drop the returnTwoVals method on a page and choose to create a button.
- double click the button to generate the binding code
    public String commandButton_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding =
            bindings.getOperationBinding("returnTwoVals");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        return null;
    }- you can access the values in the arry by adding this code after the Object result =...
   String[] vals = (String[])result;
   System.out.println(vals[0] + " - " + vals[1]);

Similar Messages

  • About return type and parameter type in IDL

    I don't know how to define return type and parameter type in
    operations in a module which are not listed in predefined in
    IDL. can I define these types as java class?
    can someone help me where a tutorial about this in detail can
    be found?
    thanks a lot

    My understanding is that if something is not in the IDL definition, then as far as the CORBA system is concerned it doesn't exist.
    Therefore any methods you create in a class that implements an IDL defined interface, that are outside that interface, are completely free and outside the CORBA system.
    The parameters and return types of these 'local native' methods should be java classes. All methods and variables outside the IDL spec will only be visible to the local JVM.
    ciao
    Jim
    PS - there is a zip file containing a very long and fairly messy demo of this behaviour at http://clio.mit.csu.edu.au/subjects/itc327/Asg2Demo.zip
    it has an html file which describes using additional non-IDL 'local native' methods for implementing a save/load function

  • How To Handle Tickets and What are those

    Hi Everybody,
    Can anybody tell me, How to handle tickets and what are those.
    srinivas

    Hi,
    Tickets are basically assocaited with Production support type of work.
    Tickets are nothing but the medium through which problems reported either in the system or by users to the Production support team.
    There are certain problem management tools that every organization uses (tickets are created and worked on using those tools). There are tools like Vantive, Remedy, CASE, etc.
    Usually the helpdesk gets the first contact for any user problems and then they log a ticket with the appropriate support teams. The support teams then pick up those tickets and work on them till they are resolved. There are tickets created for user problems or any batch job failures, system failures, etc.
    Tickets are usually classified as Critical, High or Low and again they are categorized as High Severity, Medium Severity or Low Severity. All these types of tickets have SLAs (Service level agreements) for the Support teams to respond and the resolve the tickets in.
    Look at the threads below for similar posts :
    tickets
    Tickets
    tickets
    Cheers,
    Kedar

  • Trouble defining an interface return type and parameter

    This is what I have so far
    interface Display {
       //Excel
       public HSSFRow createRow(HSSFSheet sheet);
       public HSSFWorkbook createContainer();
       //Pdf
       public Document createContainer(Document document);
       public Document createRow(Document document);
    }Really what I want is one method declaration called createRow() that has an unknown return type and an unknown input parameter type. Is there a way to accomplish this? I will have two classes implement this interface. An Excel class and a PDF class. Those two classes will contain the correct implementations of createContainer() and createRow().
    For example my Excel class will contain this
    public HSSFRow createContainer(){
    return new HSSFWorkbook();
    }and my pdf class will look something like this
    public Document createContainer(Document document){
    return new Document();
    }My main class then can do something like this:
    Display display;
    if(input.equals("xls")){
    display = new Excel();
    }else if(input.equals("pdf")){
    display = new Pdf();
    //Here I can call the correct method to build the outer container
    display.createContainer();What I'm trying to do is have reuse all my algorithms and just have generic calls to create the main container, rows, etc.I had a previous post on this but have created a new one thats more specific to interfaces because ideally I'd like use interfaces here if possible, but not if it will get more complicated than its worth.

    What generic things do you wish to be able to do with all documents? Whatever those things are, they are what should be defined in either an interface or abstract class.
    Here is an example (without any error checking), though it's not the only approach you could take:
    public interface ForumKidDocument {
         public void nextRow();
         public void addTableCell(String cellContent);
         public void save(File file);
         // add whatever other methods you want all documents to be able to do
    public class ExcelForumKidDocument implements ForumKidDocument {
         private HSSFWorkbook workbook;
         private HSSFSheet worksheet;
         private HSSFRow currentRow;
         private int row;
         private int col;
         public XLSForumKidDocument() {
              this.workbook = new HSSFWorkbook();
              this.worksheet = workbook.createSheet();
         public void nextRow() {
              this.currentRow = this.worksheet.createRow(row++);     
              col = 0;
         public void addTableCell(String cellContent) {
              HSSFCell cell = currentRow.createCell(col++);
              cell.setCellValue(cellContent);
         public void save(File file) {
              //TODO:  save workbook to the given File
    public class PDFForumKidDocument implements ForumKidDocument {
    }Then in your outer method, you work with ForumKidDocument instances, calling only ForumKidDocument methods, without having to know anything about the inner workings of the document type.

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • How the Payload Message and Logs are stored in the B1i Database Table: BZSTDOC

    I would appreciate it if someone could provide any documentation regarding B1i database further maintenance.
    for example:
    I want to know how the payload message and logs are stored in the table BZSTDOC, and how can we retrieve the payload message directly from the column DOCDATA.
    As described in the B1iSNGuide05 3.2 LogGarbageCollection:
    to avoid the overload of the B1i Database, I set the Backup Buffer to 90 days : so this means Message Logs from the last 90 days will always be available, but is there some way we can save those old messages to a disk so that I can retrieve the payload message anytime?
    in addition, let’s assume the worst, the B1iSN server or the B1i database damaged, Can we just simply restore the B1i database from a latest backup DB then it can work automatically after the B1iSN server is up and running again?
    BR/Jim

    Dear SAP,
    Two weeks passed, I still haven't received any feedback from you guys.
    Could you please have a look at my question?
    How is this Question going? Is it Untouched/Solving/Reassigned ?

  • How many break points and watchpoints are allowed in ECC 6.0

    Hi,
    Can any one say how many break points and watchpoints are allowed in ECC 6.0

    Hi ,
    A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the Debugger. The Debugger is activated when the program reaches this point.Max 30 breakpoints we can use.
    There is a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change ie...Watchpoints allow you the option of monitoring the content of individual variables.The Debugger stops as soon as the value of the monitored variable changes.You can use max of 5 watchpoints.
    Difference
    1. Break Point.
    At particular LINE of SOURCE CODE,
    the system will STOP there.
    2. Watch Point.
    If you want to interrupt a program when the contents of a field or structure change, use a watchpoint. You can set up to five watchpoints, including watchpoints for strings.
    (For this, we have to give some
    VARIABLE NAME & VARIABLE VALUE - with relational operator)
    When this CONDITION gets satisfied,
    (anywhere during the execution of the program),
    the system will AUTOMATICALLY STOP THERE.
    (EG when the value of matnr reaches the specified value)
    That is the purpose of WATCHPOINT
    (the system will WATCH it, like a dog)
    Please go through this link:
    Watchpoint Vs breakpoint
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
    Like a breakpoint, a watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger. Watchpoints allow you the option of monitoring the content of individual variables.
    The Debugger stops as soon as the value of the monitored variable changes.
    In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.
    For more details...
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cd9e68c11d2b2ab080009b43351/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/792442db42e22ce10000000a1550b0/frameset.htm
    If satisfied, rewards me..
    Kind Regards
    Yogesh

  • DLL return type and parmaters

    I must access a DLL developped by VC++ via LV6i with the 'Call Library function'. Everythimg is fine, but the DLL function return type is bool, and I don't find the bool data type in the 'Call library parameter'.
    Secondly, I must pass parameters to this DLL function. Parameters type are : std::vector and GUID. How can I pass this type of parameters ??
    Function is : bool MyFunction (const GUID &guidMyGuid, std::vector &MyVector).
    Thanks in advance.

    You can't, you have to create a CIN that reshapes this parameters to something LabView understand.

  • XI settings, change of Data Types and XI still maps old structures

    Hi,
    I have defined XI scenario, where synchronous WebService is being called, and XI calls RFC function module, which returns data. It was working perfectly, until
    I have changed the order of few fields in Data Type and added a few new (exactly as the changes in RFC function module).
    And now the WebService returns exception, on the first field added to the interface:
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_BMS_Response/CUSTOMERS_PERSON/TITLE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
    TITLE is added field.
    I have reactivated everything one by one again, clear cache from Integration Builder and Integration Directory, but it does not help and still old structures are being used in XI.
    I have tested the Interface Mapping and all fields are transformed correctly.
    Please help as it comes a little urgent and I have run out of ideas what to do to refresh the customizing of data types?
    Thank you in advance!

    Hi Peter,
    Yes, I am calling RFC function module from XI.
    After I changed the interface of RFC in SAP, I have imported this RFC once more to XI in Integration Builder and new structures appeared.
    And exception returned is that first new field added to the RFC and Data Type and so on, returns an exception.
    And returned XML structures (in message monitoring) appears to be still old structures.

  • Covariant return types and reflection

    I have TextControl which extends AbstractValueControl, which has this method:
    public ValueModel getModel() {return (ValueModel)super.getModel();}AbstractValueControl extends AbstractControl, which has:
    public ControlModel getModel() {return (ControlModel)super.getModel();}AbstractControl extends AbstractComponent, which has:
    public Model getModel() {return model;}(The models are all interfaces.)
    So at runtime I'm enumerating the methods of TextControl.class using reflection, and the Method for getModel() indicates a return type of ControlModel!
    Reflection must recognize covariance, or the return type would indicate simply Model. but TextControl extends AbstractValueControl, so I would expect (and desire) the return type to be ValueModel. Why isn't this the case?
    Thanks,
    Garret

    So at runtime I'm enumerating the methods of
    TextControl.class using reflection, and the Method
    for getModel() indicates a return type of
    ControlModel!
    Reflection must recognize covariance, or the return
    type would indicate simply Model. but TextControl
    extends AbstractValueControl, so I would expect (and
    desire) the return type to be ValueModel. Why isn't
    this the case?Because you're enumerating the methods in random order! (See the JavaDoc for Class.getMethods()).
    If you're lucky, you'll encounter the "correct" version of getModel first, if not, you'll get to the compiler-generated bridge-method with the same name first.
    You need to filter out the compiler-generated methods using Method.isSynthetic(). There should be only one getModel in each class where isSynthetic == false

  • How do I find out how much space OSX and applications are taking up on my HDD?

    I am thinking of moving my OS and all applications to a SSD to free up space on my MBP.
    My question is how do I find out how much space OSX and installed applications are taking up on my HDD so I know how big the SSD needs to be?  Also, what is the best way to move these files across to the new SSD once installed?
    Many thanks,
    Andrew.

    If you do command-click or right click on your hard drive and select get info, it will tell you how full the HD is.
    there are some apps that can show you exactly how big particular apps are
    GrandPerspective
    Disk Inventory X
    I replaced my internal drive with a SSD for performance reasons a few months ago. There are a number of ways to move your files over to the new SSD. I am a fan of the clean install, which might take a bit more time and effort but results in a very fast and trouble free mac. An easy way to do this if you are replacing your internal drive is to put the old drive in an external drive enclosure. Then you install the new SSD and install mavericks on it. In my case I used Diskmaker X to make a Mavericks installer (DiskMaker X (formerly Lion DiskMaker) . Then you can reinstall your apps from scratch, and finally move your documents over from the external drive.

  • How to Return Type from Function

    I've defined a type and a function in specification. But package body returns pls-00330 error (invalid use of type name or subtype name). What am I doing wrong? My intent is to write a function which will return a record containing two values. For now, I put "null;" as a placeholder.
    --specification
    CREATE OR REPLACE PACKAGE res.year_qtr AS
    TYPE yq_type IS RECORD
    (yr varchar2(2),
    qtr varchar2(1));
    FUNCTION yq_fun (date_in date)
    RETURN yq_type;
    END year_qtr;
    -body
    CREATE OR REPLACE PACKAGE BODY res.year_qtr AS
    FUNCTION yq_fun (date_in date)
    RETURN yq_type IS
    BEGIN
    null;
    RETURN year_qtr.yq_type; --get error on this line!
    END;
    END year_qtr;
    Edited by: user516543 on Mar 23, 2009 12:17 PM

    You need to declare a variable of that type and return the variable.
    You can't just return the type as it's not actually a declaration of that type.
    --specification
    CREATE OR REPLACE PACKAGE res.year_qtr AS
      TYPE yq_type IS RECORD
        (yr varchar2(2),
         qtr varchar2(1));
      FUNCTION yq_fun (date_in date)
        RETURN yq_type;
    END year_qtr;
    --body
    CREATE OR REPLACE PACKAGE BODY res.year_qtr AS
      FUNCTION yq_fun (date_in date) RETURN yq_type IS
        v_ret year_qtr.yq_type;
      BEGIN
        null;
        RETURN v_ret;
      END;
    END year_qtr;

  • How do i see which parameters are being passed to wwv_flow.accept?

    Greetings everyone,
    After submiting a page i get this error:
    "The requested URL /pls/apex/wwv_flow.accept was not found on this server."
    I placed some inserts inside my page process to check and i found out the process isn t even being executed.
    This post seems to have some similarities to what is happening to me:
    doSubmit in javascript
    But all the items i need to change are being changed with javascript in the same page, after submiting they get the new values.
    What gets weirder is that it works properly in firefox and google chrome browser, however it is company politics that all aplications work in internet explorer and in internet explorer it doesn't work.
    So i would like to know how to see what is being passed to wwv_flow.accept so i can discard that option?
    Regards Pedro

    Greetings,
    I am working with Pedro Mendez in the same project.
    To give you more information about the problem, here is an example of the html structure in the page, just the div wich is causing problems:
    <div id="empresas">
    <form id="empresas_form" method="POST" action="" name="empresas_form">
    <input type="checkbox" name="empresas" value="DEMO2"/>
    Empresa Demonstração ( Demo 2)
    <input type="checkbox" name="empresas" value="SPA"/>
    SPA
    <input type="checkbox" name="empresas" value="GRH2"/>
    GRH2 - Brodheim
    <input type="checkbox" name="empresas" value="DEMO3"/>
    DEMO3 DEMONSTRAÇÂO
    <input type="checkbox" name="empresas" value="GRH"/>
    GRH - IMO
    <input type="checkbox" name="empresas" value="OK"/>
    OK
    <input type="checkbox" name="empresas" value="VALSAN"/>
    Valentim Santos
    </form>
    </div>
    To my understanding the variable that shoudl cause problems would be empresas_form and not empresas, since empresas is just a div.
    I need the checkboxes to be inside a form or i can t access them and i need to perform operations on them, any suggestions?
    best regards

  • How to return start and end time in Unix epoch format

    Hi: I have a integer field (utime) in a table that stores the UNIX epoch time for a record. Every sunday around 2:00AM, I am running a query which should return records from last week. I want my condition to have the following in it's where
    WHERE utime between
    (convert sysdate-7 12:00AM to Unix time)
    AND
    (convert yesterday 11:59PM to Unix time)
    Can someone help me create this convert?
    Thanks
    Ray

    Yes, you seem to have worked out the logic of the expression correctly. Though, in your earlier post you had said that you want records within the range:
    WHERE utime between
    (convert sysdate-7 12:00AM to Unix time)
    AND
    (convert yesterday 11:59PM to Unix time)But now you are adding 14400 (4hrs) and deducting 72000 (20hrs) in your expression
    SELECT * from TABLE
    WHERE utime between
    ((TRUNC(SYSDATE,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))+14400 AND
    ((TRUNC(SYSDATE-6,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))-72000;Which makes your new condition to be:
    WHERE utime between
    (convert sysdate 04:00AM to Unix time)
    AND
    (convert sysdate-7 04:00AM to Unix time)
    Are you sure you need records from 4am-to-4am and not midnight-to-midnight? And yes, with BETWEEN condition you need to use expression '<low-value> AND <high-value>' and not '<high-value> AND <low-value>'!
    Besides this,
    1. You might want to use bind variables rather than hard-coded expressions in your statement. Infact your expression uses SYSDATE, so Oracle would need to get current SYSDATE for each row to evaluate the expression. Which is going to have its impact on performance. As your start-time and end-time values are not dependent on table data maybe you could have a code like this (assuming it is PLSQL code):
    start_time constant number := (convert sysdate-7 12:00AM to Unix time);
    end_time constant number := (convert yesterday 11:59PM to Unix time);
    <DML or Cursor with condition>
    WHERE utime between start_time and end_time;
    2. You said that your table already has values in unix-epoch-time in column 'utime'. How are these values inserted in the first place? Is there a function in your application that converts any given time to unix-epoch-time? Is yes, then use that in your code.
    3. If such a function does not exists, than rather than using hard-coded expressions it might be a good idea to create new functions for converting to and from unix-epoch-time and to get current unix-epoch-time from server.
    Using a function in the above case:
    start_time constant number := f_convert_to_unix_time( trunc( sysdate-7 ));
    end_time constant number := f_convert_to_unix_time( trunc( sysdate )) - 1;
    <DML or Cursor with condition>
    WHERE utime between start_time and end_time;
    And lastly, some of us might not know about Unix time, so here is a useful link http://en.wikipedia.org/wiki/Unix_time

  • Privilege settings how to fix them and what are they

    trying to download itunes gives me a privilege error message

    Hi mariacrowe,
    Welcome to the Support Communities!
    The article below will help you with issues installing the latest version of iTunes for Windows:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    What version of Windows are you using?  This article explains what file permissions are and gives instructions from Microsoft for changing permissions:
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/ts1387
    Resolution
    These messages occur if permissions are incorrect on your designated music folder or on a folder inside your designated music folder. Permissions are settings that determine who can read, write to, or execute a file or folder on your computer. Every file and folder on your hard disk has an associated set of permissions.
    Example: If permissions are correct on your Music folder, but incorrect on the U2 folder inside your Music folder, you would be able to add other music to your iTunes library, but not that new U2 album.
    Look here for help in correcting the permissions on folders:
    Windows XP:
    How to set, view, change, or remove file and folder permissions in Windows XP
    Note: Permissions and privileges for files are different from authorization to play a song purchased from the iTunes Store. Click here for information on authorizing a purchased song to play.
    Additional Information
    To be able to add new music to iTunes, permissions must be correct on your Music folder and the folders in it.
    Cheers,
    - Judy

Maybe you are looking for