Generated consumer code with GWPA

Hi,
We are developing an android application using GWPA(The oData toolkit for android).
Our oData service is modeled with Complex types that their properties are also Complex types. (hierarchy of  complex types).
When trying to do requests using the generated code, I saw that the parsing is not working for this type of complex types.
Is anyone familiar with this issue? Is this type of complex types supported by the oData protocol?
Thanks,
Ifat.

You seem to have chosen the wrong space. Moving to SAP NetWeaver Gateway Developer Center.

Similar Messages

  • Studio 12: C compiler generates bad code with -m64 -KPIC -xO2

    Hello,
    after upgrading my Solaris 10/x64 machine from Studio 11 to Studio 12 some problems were fixed, but others came up; like this one:
    I have a code snippet that obviously causes the C compiler to generate wrong code if compiled with options -m64 -KPIC -xO2. If any of these options are missing, it runs fine. Here's the example code:
    #include <stdio.h>
    #include <strings.h>
    static int do_something() { return 0; }
    static int foo() {
        fprintf(stderr, "\n!! BUG: BAD CODE! unexpected function call foo()!\n\n");
        return 222;
    static int bar() {
        fprintf(stdout, "\nOK: bar() called\n\n");
        return 0;
    static const struct {
        const char* name;
        int (*func)();
        int flag;
    } tab[] = {
        { "foo",  &foo,  0 },
        { "bar",  &bar,  0 },
        { 0, 0, 0 }
    int main(int argc, const char** argv) {
        int i;
        for (i=0; tab.name; i++) {
    if( strcmp(tab[i].name, "bar") == 0 ) {
    if(tab[i].flag) {   /* not reached */
    if(!do_something()) {
    return 2;
    return (*tab[i].func)();
    return 1; /* not reached */
    Many lines seem to be bogus, but they are actually needed to reproduce the problem.
    This is what happens:# cc -m64 -KPIC -xO2 bug.c && ./a.out ; echo $?
    !! BUG: BAD CODE! unexpected function call foo()!
    222
    If I compile with debugging information (-g), I get expected behavior, which is:# cc -m64 -KPIC -g bug.c && ./a.out ; echo $?
    OK: bar() called
    0
    While creating the test case I've also seen SIGSEGV at runtime in the bug case - which is probably due to a wrong calculated function address for jmp (just guessing).
    Does anyone know if this is a known bug?
    Any help is appreciated.
    The rest of this posting is information about my system and Studio 12 patch level:# uname -a
    SunOS v20 5.10 Generic_137112-08 i86pc i386 i86pc
    # /usr/SUNWspro/bin/version
    Machine hardware: i86pc
    OS version: 5.10
    Processor type: i386
    Hardware: i86pc
    The following components are installed on your system:
    Sun Studio 12
    Sun Studio 12 C Compiler
    Sun Studio 12 C++ Compiler
    Sun Studio 12 Tools.h++ 7.1
    Sun Studio 12 C++ Standard 64-bit Class Library
    Sun Studio 12 Garbage Collector
    Sun Studio 12 Fortran 95
    Sun Studio 12 Debugging Tools (including dbx)
    Sun Studio 12 IDE
    Sun Studio 12 Debugger GUI
    Sun Studio 12 Performance Analyzer (including collect, ...)
    Sun Studio 12 X-Designer
    Sun Studio 12 VIM editor
    Sun Studio 12 XEmacs editor
    Sun Studio 12 Performance Library
    Sun Studio 12 LockLint
    Sun Studio 12 Building Software (including dmake)
    Sun Studio 12 Documentation Set
    Sun Studio 12 /usr symbolic links and GNOME menu item
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9 SunOS_i386 Patch 124868-07 2008/10/07
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9 SunOS_i386 Patch 124864-08 2008/10/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.3 SunOS_i386 Patch 127002-04 2008/04/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.6 SunOS_i386 Patch 124873-06 2008/08/20
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.6 SunOS_i386 Patch 126996-04 2008/09/03
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.8 SunOS_i386 Patch 126504-01 2007/07/19

    I'm watching Bug ID: [6774287|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6774287] for quite a while and it seems to be fixed some time ago (State: 8-Fix Available, bug). Does anybody know if the fix made it in some officially available SunStudio 12 C compiler (backend) patch already? I'm using this SS12 patch-level meanwhile:
    # /usr/SUNWspro/bin/version
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9 SunOS_i386 Patch 124868-08 2008/11/25
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9 SunOS_i386 Patch 124864-09 2008/12/16
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.3 SunOS_i386 Patch 127002-05 2008/10/21
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.6 SunOS_i386 Patch 124873-06 2008/08/20
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.6 SunOS_i386 Patch 126996-04 2008/09/03
    version of "/usr/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.8 SunOS_i386 Patch 126504-01 2007/07/19

  • Generating Bar-code with barcode no.

    Hi Experts,
              my requirement is to generate bar-code for data from certain fields like material no,batch no, expiry date etc. Well i am
              able to generate the bar-code with the help of smart style but i am not getting any no below the generated bar-code as
              bar-code no. As i have come across that there are basically 2 types of bar-code no. 1) UPC   and   2) EAN
              Please help me in generation of bar-code with its no below (either in UPC   or   EAN )  type.
    Thanks.
    Praveen Kumar.

    Hi, Praveen,
    I am more a barcode expart than SAP expert.  Here is a link to an article that may be helpful:
    [Printing barcodes from SAP|http://www.makebarcode.com/info/appnote/app_024.html]
    You mentioned using UPC-A or EAN-13.  I recommend that you do not use these symbologies for general-purpose fields like material no,batch no, expiry date etc.  Both of these codes are fixed length, numeric only.  It will be much better if you use a variable-length, alpha-numeric symbol like Code 39 or Code 128.  Code 39 is the easiest to work with; Code 128 requires a little more work to set up your software, but it supports a wider range of characters (lower case, symbols, etc.). 
    Here is a link to a barcode comparison chart.  From there you can find details about these codes.
    [Barcode comparison chart|http://www.makebarcode.com/specs/barcodechart.html]
    Bob

  • JAXB generating incorrect code with mixed type element extending abstract

    Hello,
    I am using JAXB v 2.0, and trying to generate proper Java classes, from the following snippet of my schema:
    <xsd:complexType name="abstract-query" abstract="true" mixed="true">
    <xsd:annotation>
    <xsd:appinfo>
    <jxb:class name="QueryElement">
    </jxb:class>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:attribute name="name" use="required"/>
    <xsd:attribute name="datasource" type="report:datasource" use="required"/>
    </xsd:complexType>
    <xsd:element name="query">
    <xsd:annotation>
    <xsd:appinfo>
    <jxb:class name="PreparedQueryElement">
    </jxb:class>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType mixed="true" >
    <xsd:complexContent>
    <xsd:extension base="report:abstract-query">
    <xsd:sequence>
    <xsd:element name="input-ref" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:element>
    When generating Java, the PreparedQueryElement class does not include a list of input-ref's.
    If I remov the two "abstract="true"" annotations, the PreparedQueryElement will get the input-ref's list, but the QueryElement will not have the getContent/setContent I need.
    Does anyone know what I'm doing wrong?

    Sorry, third time's a charm!
    Hello,
    I am using JAXB v 2.0, and trying to generate proper Java classes, from the following snippet of my schema:
        <xsd:complexType name="abstract-query" abstract="true" mixed="true">
            <xsd:annotation>
                <xsd:appinfo>
                    <jxb:class name="QueryElement">
                    </jxb:class>
                </xsd:appinfo>
            </xsd:annotation>
            <xsd:attribute name="name" use="required"/>
            <xsd:attribute name="datasource" type="report:datasource" use="required"/>
        </xsd:complexType>
        <xsd:element name="query">
            <xsd:annotation>
                <xsd:appinfo>
                    <jxb:class name="PreparedQueryElement">
                    </jxb:class>
                </xsd:appinfo>
            </xsd:annotation>
            <xsd:complexType mixed="true" >
                <xsd:complexContent>
                    <xsd:extension base="report:abstract-query">
                        <xsd:sequence>
                            <xsd:element name="input-ref" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
                        </xsd:sequence>
                    </xsd:extension>
                </xsd:complexContent>
            </xsd:complexType>
        </xsd:element>When generating Java, the PreparedQueryElement class does not include a list of input-ref's.
    If I remove the two mixed="true" annotations, the PreparedQueryElement will get the input-ref's list, but the QueryElement will not have the getContent/setContent I need.
    Does anyone know what I'm doing wrong?

  • How to generate QR Codes and link then to web site

    I need help generating QR Codes with Adobe Photoshop Elements 12; please

    Thanks for reply, would visual studio professional allow me to generate
    dynamic QR Codes or which software do you recommend

  • Can Indesign CC generate QR codes from a data merge?

    Looking to generate QR codes from a data merge.  Currently I have to manually generate the codes with a batch generator and then save them out as links and import them with the data merge.
    If Indesign CC could generate them all in one swoop that would remove a lot of external steps in the process.
    Is there any way to do this?

    Not directly from the data merge panel or flyout. This would be something that may be able to be scripted, but I haven't seen a script that will do this... yet.
    There are PAID third party plugins like Meadows Publishing Solutions that will do this. http://www.meadowsps.com/free2d is a taster of what it can do. XMPie is another one, or teacup software has one as well.

  • Generated code with some transformations - need help

    I have a mapping as below:
    1. Source table and input parameter are input to splitter
    2. Splitter has conditions as if input parameter is NULL then insert/update target table
    3. There is a constant with 4 Attributes, which also directly insert into the target table
    4. If the input parameter is NOT NULL then output from splitter goes into a filter where the condition is checked with the value from input parameter
    5. the output from filter is inserted/ updated into the target table. Here again the values from constant are also inserted into the target table.
    The Target table has 15 columns out of which I have 11 columns set for matching. I have the loading type set to 'UPDATE/INSERT'
    When I generate this code a merge statement is included in the code and everything works fine.
    My environment is:
    OWB: 10.2.0.2
    DB source & Target : 10g Rel2.
    I changed the mapping so that instead of 4 attributes in the constant above, I have 2 attributes.
    I have another constant with one of the 2 attributes removed from the above constant.
    The value from this constant goes as an input to transformation operator, the transformation operator has 2 outputs. I mapped these outputs to the splitter input.
    There after this is similar to the above mapping explained earlier. Basically the 2 attributes which were part of the constant in the first mapping are now from a transformation operator (procedure) and I have these values passed all across the mapping (through splitter and filter as is without any changes).
    Now when I generate the code, the generated code does not have a merge statement but processed row by row and hence have a cursor and then separate update and insert.
    This code is much slower than the earlier one.
    I want to retrieve the values through a procedure as in the second case instead of the constant but want to have a set based processing as in the first case. How Can I do this?
    Any help please?
    Thanks,
    Maruthi

    Hi,
    Do not use the transformation operator. All transformation are nothing but built-in SQL functions. Take your constant values into an expression operator and then make two output attributes in it. In the expression builder call the function appropriately and as mentioned above, generate the code in set based fail over to row based (default mode) and execute it. The mapping should execute in Set Based Mode.
    Regards
    -AP

  • How to generate html-code using csv input with JSP or JAVA???

    Hello,
    I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file can’t be located or openend.
    BTW if every knows a good tutorial or weblog for this, please post the link.
    It’s located in a par-archive under:
    />dist>files
    I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
    Here part of the code I tried in the doContent():
    public class CSV extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            String strWRoot = request.getWebResourcePath();
            String contentCSV="", line="";
            String linesep = System.getProperty("line.separator");
            File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
            boolean exCSV = fileLoadCSV.exists();
            boolean reCSV = fileLoadCSV.canRead();
            int a=0;
            if(exCSV&&reCSV){
                response.write("ok");
                try {
                  BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
                  while((line=inputCSV.readLine())!=null){
                    contentCSV=contentCSVlinelinesep;
                    a++;
                  inputCSV.close(); 
                catch(IOException ioex){
                    System.out.println("Fehler");  
            else {
                response.write("not ok");
            response.write("<br>Wroot: "+strWRoot);
            response.write("<br>File: "+fileLoadCSV);
            response.write("<br>exists: "+exCSV);
            response.write("<br>read: "+reCSV);
            response.write("<br>Input: "+contentCSV);
    The Output is:
    not ok
    Wroot: /irj/portalapps/DHTML
    File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
    exists: false
    read: false
    Input:
    So thanks to everyone who can give me a good hint.
    Bye.

    Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
    I hope this helps
    D

  • In other words jQuery mobile does not generate code with result can not test Apps in dw cs6

    from the time compiled in phonegap dw c6 tools and tested from dw the App in Android sdk, for a jQuery mobile App the, code in split/Live is the same as split/Live/Live Code.... in other words jQuery mobile does not generate code with result can not test Apps in dw cs6, but design shown without jQ mobile generated code, well?

    well, jQuery mobile stopped to generate code with result can not test Apps in dw cs6, but design shown without jQ mobile generated code, well (neither generated code seems nor design as seem in mobile)....????

  • Embed labview generated code with c++ gui application

    Hey everyone ,
      I am very new to labview and trying to learn it  ... but before that i wanted to make sure a doubt which i have in my mind , the problem is that i have a realtime GUI application built on c++ widgets and i want to change the existing DSP block in this application with the code generated by using the LABVIEW , i am sorry that have very
    less amount of knowledge regarding labview so i turn up with thread ... So can generate c++ code for the DSP blocks designed in labview ... if yes how and if not why . Any
    sincere help will be appreciated . And I very much apologise for any mistakes in my question .
    Thanks

    Tonph wrote:
    Thanks rolf, is it possible that i use labview to disign my DSP block only and the output be fed to my custom c++ blocks and also wxwidget GUI ... suggest some means thanks ...
    Well, have you followed the link I gave in my post? You can download an evaluation version of the add-on and try it out in LabVIEW. It generates C code, not C++, but that should be no problem, since it is very easy to call C code from a C++ application. I can't vouch for the suitability of this add-on for you, nor do I know the exact price range so that are certainly things you have to do for your own.
    As to nathans solution, that could work too. If your application is for Windows, or MacOS X, or Linux you can create a shared library from your LabVIEW code and call it as such from your C++ application.
    Personally I would find it a rather roundabout way to include LabVIEW generated code in a wxWidget application. One of the strengths of LabVIEW is not only signal acquisition and analysis but also simple GUI design, at least as long as you are after a functional GUI, and not a very specific style of a GUI. So I would never even consider to do the GUI part with anything but LabVIEW if some other parts are already to be done in LabVIEW.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    Dear Anubha,
    I hope these windows illustrate what I am facing.
    The above window shows the prompt that the software requires activation.
    The version is 8.1.0.
    This next window is the point where I select activation by phone.
    This final window shows that the "response code" is not returned.  I get an
    "Activation Number" instead.
    Steven
    On Tue, Jan 27, 2015 at 10:50 PM, Anubha Goel <[email protected]>

  • Generating Code with NetBeans

    I'm using NetBeans IDE 6.1 UML editor to generate java code. When I choose the "Generate Code" option and select the options I want. The console shows the message:
    Generating source from template "Java/CompilationUnit.java" ...ERROR: java.lang.NullPointerException
    How do I find where the Null Pointer Exception is being thrown?

    Rick.Lohmeyer wrote:
    I'm using NetBeans IDE 6.1 UML editor to generate java code. When I choose the "Generate Code" option and select the options I want. The console shows the message:
    Generating source from template "Java/CompilationUnit.java" ...ERROR: java.lang.NullPointerException
    How do I find where the Null Pointer Exception is being thrown?You go over to the NetBeans forum and ask them the same questions, since this is not a Java question, but a IDE specific question. Also if you are not a fairly seasoned programmer, then may I happily wish you cheers with all the frustration and grief that inevitably awaits you in your autocoding endeavors.

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • The BEx Analyzer cannot generate VBA code due to the security settings

    Hello experts,
    when I try to open a query in BEx Analyser I get this error message for each Item of the Query:
    Diagnosis
    The BEx Analyzer cannot generate VBA code due to the security settings.
    System Response
    VBA code is not generated.
    Procedure
    Choose Tools -> Macro -> Security.
    On the Trusted Publishers tab page, select Trust access to Visual Basic project.
    Choose OK.
    Close the BEx Analyzer and continue working as before.
    Access to Visual Basic project is only needed when generating VBA code.
    This only takes place in design mode or when 3.x workbooks are upgraded.
    Of course I did exactly what was recommanded in the "procedure-section" of this error message. But BEx ist still not working!
    I use SAP NetWeaver 7.0 together with MS Excel 2007
    Thanks
    Axel

    Hello experts,
    I am an additional person interested in the way this issue was solved.
    I confirm that the issue is coming from the SP2 of Microsoft Office (I have another environnement without the SP2 and everything works well), and I am in a situation where I can't remove the update.
    Regards
    Guillaume P.
    EDIT :
    Solution found : I applied the bi710sp10p_1001-10004472.exe patch
    (downloaded via the download maanger : Support Packages and Patches - Entry by Application Group" SAP Frontend Components" BI ADDON FOR SAP GUI" BI 7.0 ADDON FOR SAP GUI 7.10)
    Edited by: GUILLAUME PETIAUX on Apr 13, 2010 10:29 AM

  • Hand made or generated GUI code, what do proffesional use?

    Hello!
    I am currious about what programs people that work as a programmer use? Is it common that they use programs that generats code like Netbeens for instance? I tryed that program in design mode to make a gui, but when I looked at the code it had generated I could not understand it. When I have seen simple example of gui code that has been hand written I have no trouble to understand the code.
    My opinion is that code is something that others than yourself can read and understand. Wich ofcource is not as simple as it sounds :) The reason I could not understand Netbeens generated code can ofcource be that I am a java beginner.
    So, what I am asking is that:
    1. Is it common that proffesional programmers use programs like Netbeens to generate GUI code ?
    2. The problem that others cant read or understand the code, is it more common that the programmer have used generated code or does the problem as easly occur when the code is hand written?
    Regards
    Martin
    Edited by: onslow77 on Nov 4, 2009 8:02 AM

    gimbal2 wrote:
    but I prefer hand made code; that generated crap is unreadable (all imho of course) and I don't understand it eitherSeconded. Code generation not only creates messy, undocumented code, but it also leads to hidden mistakes which are the worst kind. I'd rather spend a little more time writing the stuff by hand and not only having full control over the outcome, but also have full knowledge of its inner workings.Thirded. For my money, if you're building rich GUIs that are anything other than trivial, it's probably worth investing some effort in writing a layer of code to simplify building those GUIs. Working with vast amounts of raw Swing, for example, is a painful experience. For our Swing products, we've got a whole library of controls we built specific to our apps. We also wrote a layer of abstraction over the whole of Swing itself, but that's another story. Another alternative is to use a Rich Client Platform like Eclipse RCP, which provides a lot of common, rich components, and a framework for deploying them in, out of the box. Both the Eclipse and NetBeans IDEs are built upon their own respective RCP packages, which are available for you to use for your own apps. All those nice editors, drag-n-drop views, trees, menus, shortcuts and what-not, all just there for you to use without having to write any tiresome window-resizing code. Lovely. I don't know about IntelliJ, but I wouldn't be surprised if it, too, did so. Spring RCP is another such package.

Maybe you are looking for

  • How to create and Pass DBLINK name at the run time

    Hi, Please help me out .... ACCEPT DB_USER PROMPT 'Enter the DB user name :' like this i will get the DB_USER name and i want to create one dblink with that userbame at the runtime and in all my .sql file i have to append that user name and dblink ..

  • No microphone jack and my headphone jack isn't working. N858

    I just got a Lenovo N585, and I've got to say it's one confusing laptop, at least for me. Well I tried plugging in my headphones into the head phone jack, and its works externally, but there is no sound coming out of my head phones. I am wondering if

  • Text size is reduced when printing with a jpeg imbeded in the email

    When running Thunderbird 31.3.0 and there is a large sized jpeg attached, the email will print showing the entire email but text gets scaled down so the jpeg image will fit. Is there a way to either have the picture cropped so it does not control the

  • Getting standerd size of the screen

    in java 2d there two spaces one is user another system java says there is two spaces 1.user space is system independent 2.system space so i want know is there any standerd screen size is there where in which i can design my gui by doing that when i r

  • Can you mix calls to the Posix and native thread librariess?

    Is it possible to mix calls to different thread libraries within the same process. We have a shared library interface to our product which is called from a customers application. In order to provide a thread safety we need to protect global data in t