GithubHelp home page GithubHelp logo

service-generator's People

Contributors

alvaromurillo avatar awayo avatar claucookie avatar drmillan avatar fmaylinch avatar juanmatm82 avatar kgomez avatar kikogo avatar luismacb avatar mrmans0n avatar mvyeren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

service-generator's Issues

Should not assume /src directory while generating files

In cases where we want to use a maven default directory scheme, we wouldn't want to be appended the src/ directory.

For instance, we execute the ruby generator with the following line.

ruby generator.rb -f my_project_blueprint.xml -pn MyProject -package com.myproject -aOutput ../MyProject/src/main/java/

We would end with a MyProject/src/main/java/src/com/myproject and it would be a mess.

Problem with services with empty Response or Request

When no RequestDTO or ResponseDTO is defined, the generation crashes without specifying a meaningful error, with the following exception log:

/Users/mrm/Documents/workspace-personal/PieDeFault-Android/wstmp/xmlReader.rb:114:in `read_type': undefined method `attributes' for nil:NilClass (NoMethodError)
    from /Users/mrm/Documents/workspace-personal/PieDeFault-Android/wstmp/xmlReader.rb:58:in `block in read_messages'
    from /Users/mrm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rexml/element.rb:905:in `block in each'
    from /Users/mrm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rexml/xpath.rb:67:in `each'
    from /Users/mrm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rexml/xpath.rb:67:in `each'
    from /Users/mrm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rexml/element.rb:905:in `each'
    from /Users/mrm/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rexml/element.rb:393:in `each_element'
    from /Users/mrm/Documents/workspace-personal/PieDeFault-Android/wstmp/xmlReader.rb:48:in `read_messages'
    from /Users/mrm/Documents/workspace-personal/PieDeFault-Android/wstmp/xmlReader.rb:35:in `read_xml'
    from generator.rb:53:in `<main>'

XML example:

<?xml version="1.0"?>
<protocol>
    <messages>
        <!-- HOME -->
        <message name="Home" service="Home" method="homeInfo" description="" type="Get">
            <urlPattern>
                <url address="${serviceRoot}/home"/>
            </urlPattern>
            <response name="HomeResponseDTO">
                <field name="home" type="VenueDTO*" description="Listado de hasta 8 locales recomendados en formato lite"/>
                <field name="status" type="String" description="valores posibles = ok, ko"/>
            </response>
        </message>
    </messages>
</protocol>

IOS Base Logic Template is not ThreadSafe

IOS Base Logic Template generates no-threadsafe code, some variables are stored locally and should be moved to a custom delegate when synchronous service calls are called.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.