drmillan / service-generator Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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.
Method writeInt on Parcel has an int as parameter and not an Integer, so when java makes the cast from Integer to int if that integer is null it throws an Exception.
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>
Buenas,
estaría bien poder tener en los Task el http status code que devuelve el servidor
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.
Please replace "URL" with "url" so there is no error in the javadoc, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.